summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l17
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("*&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);
}