Skip to content

Commit

Permalink
Silently ignoring unexpected characters in configuration
Browse files Browse the repository at this point in the history
Should also ignore `\r` as white space
  • Loading branch information
albert-github committed Nov 18, 2020
1 parent d2c98cd commit e1dfd05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configimpl.l
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ static void readIncludeFile(const char *incName)
<SkipComment>\\[ \r\t]*\n { g_yyLineNr++; BEGIN(Start); }
<SkipComment,SkipInvalid>.
<*>\\[ \r\t]*\n { g_yyLineNr++; }
<*>[ \t]
<*>[ \t\r]
<*>. { config_warn("ignoring unknown character '%c' at line %d, file %s\n",yytext[0],g_yyLineNr,g_yyFileName.data()); }
<*>\n { g_yyLineNr++ ; }

Expand Down

0 comments on commit e1dfd05

Please sign in to comment.