diff options
author | albert-github <albert.tests@gmail.com> | 2021-03-12 14:00:53 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-03-12 14:00:53 (GMT) |
commit | e662aa66b182288591b91b569710e8b7a629c828 (patch) | |
tree | f416b1759fdd3339c5773e9cf53880bf18aad4e4 /src | |
parent | 9136e8c664bc4b0706a9cf419c76b2277b87f4a1 (diff) | |
download | Doxygen-e662aa66b182288591b91b569710e8b7a629c828.zip Doxygen-e662aa66b182288591b91b569710e8b7a629c828.tar.gz Doxygen-e662aa66b182288591b91b569710e8b7a629c828.tar.bz2 |
Usage of default lex rule with `\param`
In case we have a file like
```
/// \file
/// the fie
/// \param
/// arg the argument
void fie(int arg);
```
we get in the console output extra empty lines, this is due to the fact that the default lex rule kicks in an the output is echoed to the consol.
We have defined an explicit rule.
Diffstat (limited to 'src')
-rw-r--r-- | src/commentscan.l | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 89b8052..16db2d6 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1198,6 +1198,10 @@ STopt [^\n@\\]* <ParamArg1>"," { addOutput(yyscanner," , "); } +<ParamArg1>{DOCNL} { + if (*yytext=='\n') yyextra->lineNr++; + addOutput(yyscanner," "); + } <ParamArg1>{ID} { addOutput(yyscanner,yytext); BEGIN( Comment ); @@ -1897,6 +1901,10 @@ STopt [^\n@\\]* addOutput(yyscanner,yytext); } + /* +<*>. { fprintf(stderr,"Lex scanner %s %sdefault rule for state %s: #%s#\n", __FILE__,yyextra->fileName ? ("(" + yyextra->fileName +") ").data(): "",stateToString(YY_START),yytext);} +<*>\n { fprintf(stderr,"Lex scanner %s %sdefault rule newline for state %s.\n", __FILE__, yyextra->fileName ? ("(" + yyextra->fileName +") ").data(): "",stateToString(YY_START));} + */ %% |