Skip to content

Commit

Permalink
Problem with \\ at end of an ALIASES in the configuration file
Browse files Browse the repository at this point in the history
In principle a configuration file should not know anything about the doxygen commands, but the handling of the escaped `\` and `@` are an exception of this rule (especially in `ALIASES`).
The mentioned escaped characters were not handled properly.
  • Loading branch information
albert-github committed Oct 30, 2020
1 parent cbfc7f9 commit 47c34e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/doxywizard/config_doxyw.l
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ static void readIncludeFile(const QString &incName)
}
BEGIN(g_lastState);
}
<GetQuotedString>("\\\\"|"@\\"|"\\@"|"@@") {
g_tmpString+=yytext;
}
<GetQuotedString>"\\\"" {
g_tmpString+='"';
}
Expand Down
3 changes: 3 additions & 0 deletions src/configimpl.l
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,9 @@ static void readIncludeFile(const char *incName)
}
BEGIN(g_lastState);
}
<GetQuotedString>("\\\\"|"@\\"|"\\@"|"@@") {
g_tmpString+=yytext;
}
<GetQuotedString>"\\\"" {
g_tmpString+='"';
}
Expand Down

0 comments on commit 47c34e3

Please sign in to comment.