Skip to content

Commit

Permalink
Return nil for all syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Jul 22, 2020
1 parent 386ed20 commit 51817ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/racc/cparse/cparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 51817ce

Please sign in to comment.