summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib-src/etags.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 67b76826727..25fe5507ff6 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1672,7 +1672,14 @@ C_entries (c_ext)
/* Detect end of line, after having handled the last token on the line. */
if (c == 0)
{
- CNL;
+ if (incomm)
+ {
+ CNL_SAVE_DEFINEDEF;
+ }
+ else
+ {
+ CNL;
+ }
gotone = FALSE;
}
if (c == ';' && tydef == end) /* clean with typedefs */