summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-02-11 20:48:44 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-02-11 20:48:44 (GMT)
commitcc78b12b0019fbcb17692b231d38ba75d0952201 (patch)
tree8c7f62b6c673538e0e854c2091e6d00a678223b4 /src/commentscan.l
parent0e080f486f67008ef427c834f6ab6ebca7578124 (diff)
downloadDoxygen-cc78b12b0019fbcb17692b231d38ba75d0952201.zip
Doxygen-cc78b12b0019fbcb17692b231d38ba75d0952201.tar.gz
Doxygen-cc78b12b0019fbcb17692b231d38ba75d0952201.tar.bz2
Bug 722603 - doxygen nested \if \endif sample not working
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 65c352e..fc53c57 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -1842,8 +1842,14 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
}
else
{
- delete guards.pop();
- BEGIN( GuardParamEnd );
+ GuardedSection *s = guards.pop();
+ bool parentVisible = s->parentVisible();
+ delete s;
+ if (parentVisible)
+ {
+ enabledSectionFound=TRUE;
+ BEGIN( GuardParamEnd );
+ }
}
}
<SkipGuardedSection>{CMD}"else"/{NW} {