diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | grammar/lexer.l | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,7 @@ ---------------------------------------------------------------------------- +Version 7.2.6 [v7-stable] 2013-01-?? +- slightly improved config parser error messages when invalid escapes happen +---------------------------------------------------------------------------- Version 7.2.5 [v7-stable] 2013-01-08 - build system cleanup (thanks to Michael Biebl for this!) - bugfix: omelasticsearch did not properly compile on some platforms diff --git a/grammar/lexer.l b/grammar/lexer.l index 63eaa8ce..b7966369 100644 --- a/grammar/lexer.l +++ b/grammar/lexer.l @@ -216,7 +216,8 @@ int fileno(FILE *stream); <COMMENT>([^*]|\n)+|. <INOBJ>#.*$ /* skip comments in input */ <INOBJ>[ \n\t] -<INOBJ>. { dbgprintf("INOBJ: invalid char '%s'\n", yytext); } +<INOBJ>. { parser_errmsg("invalid character '%s' - is there an invalid " + "escape sequence somewhere?", yytext); } \$[a-z]+.*$ { /* see comment on $IncludeConfig above */ if(!strncasecmp(yytext, "$includeconfig ", 14)) { yyless(14); |