summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-02-25 15:18:56 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-02-25 15:18:56 (GMT)
commitcff8111ed33af6033bd188868964d92ea3503188 (patch)
tree2a7451abfd771d43ea2b3ac2443d94c3eb5cfee7 /src/pre.l
parent34d4ace6d4037862b6d280f1d7534292c714bf59 (diff)
downloadDoxygen-cff8111ed33af6033bd188868964d92ea3503188.zip
Doxygen-cff8111ed33af6033bd188868964d92ea3503188.tar.gz
Doxygen-cff8111ed33af6033bd188868964d92ea3503188.tar.bz2
Release-1.8.0
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pre.l b/src/pre.l
index 217ed80..9975934 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2206,11 +2206,15 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
BEGIN(SkipString);
}
<SkipLine>.
-<SkipLine,SkipCommand,SkipCPPBlock,SkipString>"//"[^\n]* {
+<SkipString>"//"/[^\n]* {
+ }
+<SkipLine,SkipCommand,SkipCPPBlock>"//"[^\n]* {
g_lastCPPContext=YY_START;
BEGIN(RemoveCPPComment);
}
-<SkipLine,SkipCommand,SkipCPPBlock,SkipString>"/*"/[^\n]* {
+<SkipString>"/*"/[^\n]* {
+ }
+<SkipLine,SkipCommand,SkipCPPBlock>"/*"/[^\n]* {
g_lastCContext=YY_START;
BEGIN(RemoveCComment);
}