Commit e1a03988 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge branch 'feature/bug_678436' of https://github.com/albert-github/doxygen...

Merge branch 'feature/bug_678436' of https://github.com/albert-github/doxygen into albert-github-feature/bug_678436
parents 0754c968 7f4414b9
...@@ -1810,7 +1810,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" ...@@ -1810,7 +1810,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
/* ----- handle arguments of if/ifnot commands ------- */ /* ----- handle arguments of if/ifnot commands ------- */
<GuardParam>"(" { <GuardParam>{B}*"(" {
g_guardExpr=yytext; g_guardExpr=yytext;
g_roundCount=1; g_roundCount=1;
BEGIN(GuardExpr); BEGIN(GuardExpr);
...@@ -1836,7 +1836,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$" ...@@ -1836,7 +1836,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
unput(*yytext); unput(*yytext);
BEGIN(GuardParam); BEGIN(GuardParam);
} }
<GuardParam>[a-z_A-Z0-9.\-]+ { // parameter of if/ifnot guard <GuardParam>{B}*[a-z_A-Z0-9.\-]+ { // parameter of if/ifnot guard
handleGuard(yytext); handleGuard(yytext);
} }
<GuardParam>{DOCNL} { // end of argument <GuardParam>{DOCNL} { // end of argument
...@@ -3135,7 +3135,7 @@ static void groupAddDocs(Entry *e,const char *fileName) ...@@ -3135,7 +3135,7 @@ static void groupAddDocs(Entry *e,const char *fileName)
static void handleGuard(const QCString &expr) static void handleGuard(const QCString &expr)
{ {
CondParser prs; CondParser prs;
bool sectionEnabled=prs.parse(yyFileName,yyLineNr,expr); bool sectionEnabled=prs.parse(yyFileName,yyLineNr,expr.stripWhiteSpace());
bool parentEnabled = TRUE; bool parentEnabled = TRUE;
if (!guards.isEmpty()) parentEnabled = guards.top()->isEnabled(); if (!guards.isEmpty()) parentEnabled = guards.top()->isEnabled();
if (parentEnabled) if (parentEnabled)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment