diff options
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));} + */ %% |