aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-01 14:52:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-12-01 15:04:30 +0900
commite36b9760fd0eb3bffbf1536106ce3cce02816c1f (patch)
tree498f61545cfa2c3945378e6b679ad2f96259a5d2 /parse.y
parentd503e1b95a40e45d7767e0175de60092de4ba54e (diff)
downloadruby-e36b9760fd0eb3bffbf1536106ce3cce02816c1f.tar.gz
Dispatch invalid hex escape content too
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 1e59e832ec..f767108181 100644
--- a/parse.y
+++ b/parse.y
@@ -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;