summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index de7e8a7..bba1b21 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -162,22 +162,22 @@ static int yyread(char *buf,int max_size)
copyToOutput(yytext,yyleng);
BEGIN(Scan);
}
-<SComment>^[ \t]*"///"[\/]*\n {
+<SComment>^[ \t]*"///"[\/]*/\n {
replaceCommentMarker(yytext,yyleng);
}
-<SComment>^[ \t]*"///"[^\/\n].*/\n {
- replaceCommentMarker(yytext,yyleng);
- }
-<SComment>^[ \t]*"//!".*/\n { /* second line of special comment */
+<SComment>\n[ \t]*"///"[\/]*/\n {
replaceCommentMarker(yytext,yyleng);
}
-<SComment>\n[ \t]*"///"[\/]*\n {
+<SComment>^[ \t]*"///"[^\/\n].*/\n {
replaceCommentMarker(yytext,yyleng);
- }
+ }
<SComment>\n[ \t]*"///"[^\/\n].*/\n {
replaceCommentMarker(yytext,yyleng);
}
-<SComment>\n[ \t]*"//!".*/\n { /* other line of special comment */
+<SComment>^[ \t]*"//!".*/\n {
+ replaceCommentMarker(yytext,yyleng);
+ }
+<SComment>\n[ \t]*"//!".*/\n {
replaceCommentMarker(yytext,yyleng);
}
<SComment>\n { /* end of special comment */