diff options
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 26c381f..b44bd70 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -970,6 +970,14 @@ RCSTAG "$"{ID}":"[^\n$]+"$" <Comment>"</remarks>" { // end of a brief or detailed description addOutput(yytext); } +<Comment>"<"{PRE}{ATTR}">" { + insidePre=TRUE; + addOutput(yytext); + } +<Comment>"</"{PRE}">" { + insidePre=FALSE; + addOutput(yytext); + } <Comment>{RCSTAG} { // RCS tag which end a brief description setOutput(OutputDoc); REJECT; @@ -1115,10 +1123,10 @@ RCSTAG "$"{ID}":"[^\n$]+"$" addOutput(yytext); } <Comment>"---" { // mdash - addOutput("—"); + addOutput(insidePre || Doxygen::markdownSupport ? yytext : "—"); } <Comment>"--" { // ndash - addOutput("–"); + addOutput(insidePre || Doxygen::markdownSupport ? yytext : "–"); } <Comment>("."+)[a-z_A-Z0-9\)] { // . at start or in the middle of a word, or ellipsis addOutput(yytext); @@ -2672,7 +2680,7 @@ bool parseCommentBlock(/* in */ ParserInterface *parser, } Debug::print(Debug::CommentScan,0,"-----------\nCommentScanner: %s:%d\n" - "input=[%s]\n",fileName.data(),lineNr,comment.data() + "input=[\n%s]\n",fileName.data(),lineNr,comment.data() ); commentScanYYrestart( commentScanYYin ); |