summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-04-14 12:36:22 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-04-14 12:36:22 (GMT)
commit3d8e32e6fbc8bb038a5a88b13c7098f53212568a (patch)
tree35adc1f0b1764001564ac0e7ffbbfb9a8bf7b821 /src/configimpl.l
parent16d025c8a08b485f5d43ade0986d716bd6aa06f8 (diff)
downloadDoxygen-3d8e32e6fbc8bb038a5a88b13c7098f53212568a.zip
Doxygen-3d8e32e6fbc8bb038a5a88b13c7098f53212568a.tar.gz
Doxygen-3d8e32e6fbc8bb038a5a88b13c7098f53212568a.tar.bz2
Count user comment lines
The user comment lines were not counted resulting in a wrong line number in case of an error message.
Diffstat (limited to 'src/configimpl.l')
-rw-r--r--src/configimpl.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index 644250f..d114b4a 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -699,12 +699,12 @@ static void readIncludeFile(const char *incName)
%%
<*>\0x0d
-<PreStart>"##".*"\n" { config->appendStartComment(yytext);}
+<PreStart>"##".*"\n" { config->appendStartComment(yytext);yyLineNr++;}
<PreStart>. {
BEGIN(Start);
unput(*yytext);
}
-<Start,GetString,GetStrList,GetBool,SkipInvalid>"##".*"\n" { config->appendUserComment(yytext);}
+<Start,GetString,GetStrList,GetBool,SkipInvalid>"##".*"\n" { config->appendUserComment(yytext);yyLineNr++;}
<Start,GetString,GetStrList,GetBool,SkipInvalid>"#" { BEGIN(SkipComment); }
<Start>[a-z_A-Z][a-z_A-Z0-9]*[ \t]*"=" { QCString cmd=yytext;
cmd=cmd.left(cmd.length()-1).stripWhiteSpace();