diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-11-28 15:03:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 15:03:17 (GMT) |
commit | 00f14e3f1666d0cb74810a725d2cf0e71799ccdc (patch) | |
tree | c0d2e1d43f1e798a1c730543a64781f4b96bc739 /src | |
parent | c66748bc3ff23a0b56bb601dbc626f645add4d28 (diff) | |
parent | e12fd6904e8cc0785f1e3a7dc48fd87ed522f715 (diff) | |
download | Doxygen-00f14e3f1666d0cb74810a725d2cf0e71799ccdc.zip Doxygen-00f14e3f1666d0cb74810a725d2cf0e71799ccdc.tar.gz Doxygen-00f14e3f1666d0cb74810a725d2cf0e71799ccdc.tar.bz2 |
Merge pull request #8210 from albert-github/feature/bug_cnt_html_comment
Line miscount in case of Html type Comment
Diffstat (limited to 'src')
-rw-r--r-- | src/commentscan.l | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index ccf71f6..10efef1 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -887,7 +887,11 @@ RCSTAG "$"{ID}":"[^\n$]+"$" <HtmlComment>"--"[!]?">"{B}* { BEGIN( Comment ); } <HtmlComment>{DOCNL} { - if (*yytext=='\n') yyextra->lineNr++; + if (*yytext=='\n') + { + addOutput(yyscanner,*yytext); + yyextra->lineNr++; + } } <HtmlComment>[^\\\n\-]+ { // ignore unimportant characters } |