Skip to content

Commit

Permalink
Bug 616379 - doxygen result by nested comment incorrectly
Browse files Browse the repository at this point in the history
Improvement on handling `///` comments in relation to `*/` during comment conversion.
  • Loading branch information
albert-github committed Nov 28, 2018
1 parent 8c7b135 commit 8e96d9c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/commentcnv.l
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,19 @@ void replaceComment(int offset);
g_inRoseComment=FALSE;
BEGIN(Scan);
}
<ReadLine>[^\\@\n]*/\n {
copyToOutput(yytext,(int)yyleng);
BEGIN(g_readLineCtx);
}
<ReadLine>"*/" {
copyToOutput("*&zwj;/",7);
}
<ReadLine>"*" {
copyToOutput(yytext,(int)yyleng);
}
<ReadLine>[^\\@\n\*]* {
copyToOutput(yytext,(int)yyleng);
}
<ReadLine>[^\\@\n\*]*/\n {
copyToOutput(yytext,(int)yyleng);
BEGIN(g_readLineCtx);
}
<CComment,ReadLine>[\\@][\\@][~a-z_A-Z][a-z_A-Z0-9]*[ \t]* { // escaped command
copyToOutput(yytext,(int)yyleng);
}
Expand Down

0 comments on commit 8e96d9c

Please sign in to comment.