[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:
|
user_yyerror:
|
||||||
if (v->errstatus == 3) {
|
if (v->errstatus == 3) {
|
||||||
if (v->t == vFINAL_TOKEN) {
|
if (v->t == vFINAL_TOKEN) {
|
||||||
v->retval = Qfalse;
|
v->retval = Qnil;
|
||||||
v->fin = CP_FIN_EOT;
|
v->fin = CP_FIN_EOT;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user