diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-09 17:43:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-09 19:07:21 +0900 |
commit | 546566d34b37fb5a028bcbe6bafa8248877f06ca (patch) | |
tree | 6f09b7db0e1daeb46f2fd10d82926610199f5f97 /parse.y | |
parent | d9e2ef6000a7a7621e110a7092f09e273eb81fcb (diff) |
Do not set `$!` to `SyntaxError` when error tolerant
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6517
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6488,8 +6488,8 @@ yycompile0(VALUE arg) if (!mesg) { mesg = rb_class_new_instance(0, 0, rb_eSyntaxError); } - rb_set_errinfo(mesg); if (!p->error_tolerant) { + rb_set_errinfo(mesg); return FALSE; } } |