diff options
author | albert-github <albert.tests@gmail.com> | 2019-04-14 12:36:22 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-04-14 12:36:22 (GMT) |
commit | 3d8e32e6fbc8bb038a5a88b13c7098f53212568a (patch) | |
tree | 35adc1f0b1764001564ac0e7ffbbfb9a8bf7b821 /src | |
parent | 16d025c8a08b485f5d43ade0986d716bd6aa06f8 (diff) | |
download | Doxygen-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')
-rw-r--r-- | src/configimpl.l | 4 |
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(); |