summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/configimpl.l')
-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..b12b40d 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]
+<*>. { config_warn("ignoring unknown character '%c' at line %d, file %s\n",yytext[0],g_yyLineNr,g_yyFileName.data()); }
<*>\n { g_yyLineNr++ ; }
%%