From 47c34e3d3ec7143ce69f53ef3a2c1ddcf6ab8065 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 30 Oct 2020 18:50:34 +0100 Subject: Problem with `\\` at end of an ALIASES in the configuration file 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. --- addon/doxywizard/config_doxyw.l | 3 +++ src/configimpl.l | 3 +++ 2 files changed, 6 insertions(+) diff --git a/addon/doxywizard/config_doxyw.l b/addon/doxywizard/config_doxyw.l index 554571f..d85de12 100644 --- a/addon/doxywizard/config_doxyw.l +++ b/addon/doxywizard/config_doxyw.l @@ -396,6 +396,9 @@ static void readIncludeFile(const QString &incName) } BEGIN(g_lastState); } +("\\\\"|"@\\"|"\\@"|"@@") { + g_tmpString+=yytext; + } "\\\"" { g_tmpString+='"'; } diff --git a/src/configimpl.l b/src/configimpl.l index ed23a12..6a527f9 100644 --- a/src/configimpl.l +++ b/src/configimpl.l @@ -922,6 +922,9 @@ static void readIncludeFile(const char *incName) } BEGIN(g_lastState); } +("\\\\"|"@\\"|"\\@"|"@@") { + g_tmpString+=yytext; + } "\\\"" { g_tmpString+='"'; } -- cgit v0.12