summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/commentscan.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 02117c2..fbcd089 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -2417,6 +2417,7 @@ static bool handleElseIf(yyscan_t yyscanner,const QCString &, const QCStringList
else
{
yyextra->guardType = yyextra->enabledSectionFound ? Guard_Skip : Guard_If;
+ yyextra->spaceBeforeIf = yyextra->spaceBeforeCmd;
BEGIN(GuardParam);
}
return FALSE;
@@ -2432,6 +2433,7 @@ static bool handleElse(yyscan_t yyscanner,const QCString &, const QCStringList &
}
else
{
+ yyextra->spaceBeforeIf = yyextra->spaceBeforeCmd;
BEGIN( SkipGuardedSection );
}
return FALSE;