diff options
Diffstat (limited to 'src/commentscan.l')
-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} { |