[ruby/racc] Return `nil` for all syntax errors
https://github.com/ruby/racc/commit/51817ce0f6
This commit is contained in:
parent
1b1ea7b3bc
commit
352895b751
|
@ -605,7 +605,7 @@ parse_main(struct cparse_params *v, VALUE tok, VALUE val, int resume)
|
|||
user_yyerror:
|
||||
if (v->errstatus == 3) {
|
||||
if (v->t == vFINAL_TOKEN) {
|
||||
v->retval = Qfalse;
|
||||
v->retval = Qnil;
|
||||
v->fin = CP_FIN_EOT;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue