Fix etags tagging by multiline regexps

* lib-src/etags.c (regex_tag_multiline): Fix off-by-one error in
determining the end of the tag matched by a multiline regexp.
(Bug#73771)

* test/manual/etags/ETAGS.good_4:
* test/manual/etags/ETAGS.good_5:
* test/manual/etags/ETAGS.good_6: Adjust test results to the above
change.
This commit is contained in:
Eli Zaretskii 2024-10-19 11:18:45 +03:00
parent 7cbca90569
commit d0be0965ca
4 changed files with 250 additions and 250 deletions

View file

@ -7420,7 +7420,7 @@ regex_tag_multiline (void)
/* Force explicit tag name, if a name is there. */
pfnote (name, true, buffer + linecharno,
charno - linecharno + 1, lineno, linecharno);
charno - linecharno, lineno, linecharno);
if (debug)
fprintf (stderr, "%s on %s:%"PRIdMAX": %s\n",