diff options
author | albert-github <albert.tests@gmail.com> | 2020-11-28 12:53:13 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-11-28 12:53:13 (GMT) |
commit | e12fd6904e8cc0785f1e3a7dc48fd87ed522f715 (patch) | |
tree | e9b6819af52af938321de0716b26d9c34e74a6f0 /src | |
parent | e16e8f3c094f073d08a49bb8397bb251c18af3f7 (diff) | |
download | Doxygen-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'
```
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 } |