summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-06-09 20:33:43 +0300
committerEli Zaretskii <eliz@gnu.org>2022-06-09 20:33:43 +0300
commit8ef3862fa0d1aa987d67ec42acf3611a42e2a0fb (patch)
tree2b292e1caf15f6c8d1f7cf977ed60c2379be08c3 /lib-src
parent559c276942e4b2d47244802cfb31fb79e61f9a7f (diff)
downloademacs-8ef3862fa0d1aa987d67ec42acf3611a42e2a0fb.tar.gz
Update the 'etags' test suite
* ETAGS.good_1: * ETAGS_good_2: * ETAGS_good_3: * ETAGS_good_4: * ETAGS_good_5: * ETAGS_good_6: Adapt to recent changes in test sources. * lib-src/etags.c (C_entries): Add commentary for resetting bracelev. (Bug#45246)
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index f76dda7936b..9a60714ecab 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -4166,6 +4166,9 @@ C_entries (int c_ext, /* extension of C */
if (definedef != dnone)
break;
bracelev -= 1;
+ /* If we see a closing brace in column zero, and we weren't told to
+ ignore indentation, we assume this the final brace of a function
+ or struct definition, and reset bracelev to zero. */
if (!ignoreindent && lp == newlb.buffer + 1)
{
if (bracelev != 0)