diff options
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r-- | src/commentcnv.l | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index 88236ed..6b08d74 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -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("*‍/",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); } |