diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-01 14:52:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-01 15:04:30 +0900 |
commit | e36b9760fd0eb3bffbf1536106ce3cce02816c1f (patch) | |
tree | 498f61545cfa2c3945378e6b679ad2f96259a5d2 /parse.y | |
parent | d503e1b95a40e45d7767e0175de60092de4ba54e (diff) | |
download | ruby-e36b9760fd0eb3bffbf1536106ce3cce02816c1f.tar.gz |
Dispatch invalid hex escape content too
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7791,7 +7791,7 @@ tok_hex(struct parser_params *p, size_t *numlen) c = (int)ruby_scan_hex(p->lex.pcur, 2, numlen); if (!*numlen) { yyerror0("invalid hex escape"); - token_flush(p); + dispatch_scan_event(p, tSTRING_CONTENT); return 0; } p->lex.pcur += *numlen; |