summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-11-19 19:08:16 (GMT)
committerGitHub <noreply@github.com>2020-11-19 19:08:16 (GMT)
commit4211ec287793c0bae93977a9359db9bafef6d2ac (patch)
treea26617fcc09fa8b156d016085e9e9b394728aa50 /src
parentfa65bb38f81457d00f9c900bb57eb68bea59b1b4 (diff)
parente1dfd05428008ba61acbb083d7903413b52a8c12 (diff)
downloadDoxygen-4211ec287793c0bae93977a9359db9bafef6d2ac.zip
Doxygen-4211ec287793c0bae93977a9359db9bafef6d2ac.tar.gz
Doxygen-4211ec287793c0bae93977a9359db9bafef6d2ac.tar.bz2
Merge pull request #8183 from albert-github/feature/bug_config_char
Silently ignoring unexpected characters in configuration
Diffstat (limited to 'src')
-rw-r--r--src/configimpl.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index 4a4a144..cad0095 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -972,8 +972,10 @@ static void readIncludeFile(const char *incName)
}
<SkipComment>\n { g_yyLineNr++; BEGIN(Start); }
<SkipComment>\\[ \r\t]*\n { g_yyLineNr++; BEGIN(Start); }
+<SkipComment,SkipInvalid>.
<*>\\[ \r\t]*\n { g_yyLineNr++; }
-<*>.
+<*>[ \t\r]
+<*>. { config_warn("ignoring unknown character '%c' at line %d, file %s\n",yytext[0],g_yyLineNr,g_yyFileName.data()); }
<*>\n { g_yyLineNr++ ; }
%%