diff options
| author | Eli Zaretskii | 2024-10-19 11:18:45 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-19 11:18:45 +0300 |
| commit | d0be0965ca344caab7879b2ac2373a68025c9ba2 (patch) | |
| tree | 1b6fbda709a1d4f83a8e385d6ac4bc4bb1bbc2ac /lib-src | |
| parent | 7cbca90569472af5643905fca5b7ab2dea67f876 (diff) | |
| download | emacs-d0be0965ca344caab7879b2ac2373a68025c9ba2.tar.gz emacs-d0be0965ca344caab7879b2ac2373a68025c9ba2.zip | |
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.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index a822a823a90..848d8ea73e3 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -7420,7 +7420,7 @@ regex_tag_multiline (void) | |||
| 7420 | 7420 | ||
| 7421 | /* Force explicit tag name, if a name is there. */ | 7421 | /* Force explicit tag name, if a name is there. */ |
| 7422 | pfnote (name, true, buffer + linecharno, | 7422 | pfnote (name, true, buffer + linecharno, |
| 7423 | charno - linecharno + 1, lineno, linecharno); | 7423 | charno - linecharno, lineno, linecharno); |
| 7424 | 7424 | ||
| 7425 | if (debug) | 7425 | if (debug) |
| 7426 | fprintf (stderr, "%s on %s:%"PRIdMAX": %s\n", | 7426 | fprintf (stderr, "%s on %s:%"PRIdMAX": %s\n", |