diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-22 19:28:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 19:28:09 (GMT) |
commit | 320857c359412e60106d5fa7c0956f792c43d72d (patch) | |
tree | 9f687e92069c2fc7fbec5220a440323d7bcc144d /src | |
parent | a3d53eda2903134a3d3e3d279088cfe2bec92a4e (diff) | |
parent | e662aa66b182288591b91b569710e8b7a629c828 (diff) | |
download | Doxygen-320857c359412e60106d5fa7c0956f792c43d72d.zip Doxygen-320857c359412e60106d5fa7c0956f792c43d72d.tar.gz Doxygen-320857c359412e60106d5fa7c0956f792c43d72d.tar.bz2 |
Merge pull request #8424 from albert-github/feature/bug_default_rule_param
Usage of default lex rule with `\param`
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 b9022a6..399f5fb 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1222,6 +1222,10 @@ STopt [^\n@\\]* <ParamArg1>"," { addOutput(yyscanner," , "); } +<ParamArg1>{DOCNL} { + if (*yytext=='\n') yyextra->lineNr++; + addOutput(yyscanner," "); + } <ParamArg1>{ID} { addOutput(yyscanner,yytext); BEGIN( Comment ); @@ -1921,6 +1925,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));} + */ %% |