diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-11 20:48:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-11 20:48:44 (GMT) |
commit | cc78b12b0019fbcb17692b231d38ba75d0952201 (patch) | |
tree | 8c7f62b6c673538e0e854c2091e6d00a678223b4 /src | |
parent | 0e080f486f67008ef427c834f6ab6ebca7578124 (diff) | |
download | Doxygen-cc78b12b0019fbcb17692b231d38ba75d0952201.zip Doxygen-cc78b12b0019fbcb17692b231d38ba75d0952201.tar.gz Doxygen-cc78b12b0019fbcb17692b231d38ba75d0952201.tar.bz2 |
Bug 722603 - doxygen nested \if \endif sample not working
Diffstat (limited to 'src')
-rw-r--r-- | src/commentscan.l | 10 |
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} { |