From e12fd6904e8cc0785f1e3a7dc48fd87ed522f715 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 28 Nov 2020 13:53:13 +0100 Subject: Line miscount in case of Html type Comment When having an example like: ``` /*! \file
Command Function
? \xx6 Dummy
*/ ``` we get the warning: ``` .../aa.c:5: warning: Found unknown command '\xx6' ``` instead of ``` .../aa.c:6: warning: Found unknown command '\xx6' ``` --- src/commentscan.l | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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$]+"$" "--"[!]?">"{B}* { BEGIN( Comment ); } {DOCNL} { - if (*yytext=='\n') yyextra->lineNr++; + if (*yytext=='\n') + { + addOutput(yyscanner,*yytext); + yyextra->lineNr++; + } } [^\\\n\-]+ { // ignore unimportant characters } -- cgit v0.12