summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-06-09 16:56:34 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-06-09 16:56:34 (GMT)
commitf7c4c021594300b449c3991de8c0918ad7f965af (patch)
tree84818288910d8f77f48ecf8e6b5fe3f4291d7a18 /src/commentcnv.l
parentc562786745020f7a59d4006537416ed43c2de2ff (diff)
downloadDoxygen-f7c4c021594300b449c3991de8c0918ad7f965af.zip
Doxygen-f7c4c021594300b449c3991de8c0918ad7f965af.tar.gz
Doxygen-f7c4c021594300b449c3991de8c0918ad7f965af.tar.bz2
Release-1.2.16-20020609
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 */