mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Escape non-printables in "unrecognized character" parser error messages
This commit is contained in:
parent
25dcf210b1
commit
4ae056b1a3
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ F RET_CONST(zeek::val_mgr->False()->Ref())
|
||||||
|
|
||||||
<RE>[\\\n] return yytext[0]; // should cause a parse error
|
<RE>[\\\n] return yytext[0]; // should cause a parse error
|
||||||
|
|
||||||
<*>. zeek::reporter->Error("unrecognized character - %s", yytext);
|
<*>. zeek::reporter->Error("unrecognized character: '%s'", zeek::util::get_escaped_string(yytext, false).data());
|
||||||
|
|
||||||
<<EOF>> last_tok[0] = '\0'; return EOF;
|
<<EOF>> last_tok[0] = '\0'; return EOF;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue