summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-02-15 20:00:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-02-15 20:00:58 (GMT)
commitb0cbd5971eb11555a9ea3ab5c23f2b0b97279b4d (patch)
treed5ea8d453754a1b971fadd965b8949a3a3d0de9a /src/pre.l
parent8fda55cdfe71d9e23407169499e918478161328d (diff)
downloadDoxygen-b0cbd5971eb11555a9ea3ab5c23f2b0b97279b4d.zip
Doxygen-b0cbd5971eb11555a9ea3ab5c23f2b0b97279b4d.tar.gz
Doxygen-b0cbd5971eb11555a9ea3ab5c23f2b0b97279b4d.tar.bz2
Release-1.3-rc3-20020215
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pre.l b/src/pre.l
index 61bdda3..94ca9ef 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1623,7 +1623,8 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
g_defLitText+=' ';
BEGIN(SkipCPPComment);
}
-<SkipCComment>"*/" {
+<SkipCComment>[/]?"*/" {
+ if (yytext[0]=='/') outputChar('/');
outputChar('*');outputChar('/');
if (--g_commentCount<=0)
{
@@ -1647,7 +1648,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<SkipCComment>. {
outputChar(*yytext);
}
-<RemoveCComment>"*/" { BEGIN(g_lastCContext); }
+<RemoveCComment>"*/" { BEGIN(g_lastCContext); }
<RemoveCComment>"//"
<RemoveCComment>"/*"
<RemoveCComment>[^*\n]+