summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-11-28 12:53:13 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-11-28 12:53:13 (GMT)
commite12fd6904e8cc0785f1e3a7dc48fd87ed522f715 (patch)
treee9b6819af52af938321de0716b26d9c34e74a6f0
parente16e8f3c094f073d08a49bb8397bb251c18af3f7 (diff)
downloadDoxygen-e12fd6904e8cc0785f1e3a7dc48fd87ed522f715.zip
Doxygen-e12fd6904e8cc0785f1e3a7dc48fd87ed522f715.tar.gz
Doxygen-e12fd6904e8cc0785f1e3a7dc48fd87ed522f715.tar.bz2
Line miscount in case of Html type Comment
When having an example like: ``` /*! \file <table> <tr><th> Command</th> <th> Function</th></tr> <!-- this is a multiline comment end of comment --> <tr><td> ? \xx6 </td><td> Dummy</td></tr> </table> */ ``` we get the warning: ``` .../aa.c:5: warning: Found unknown command '\xx6' ``` instead of ``` .../aa.c:6: warning: Found unknown command '\xx6' ```
-rw-r--r--src/commentscan.l6
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
}