Skip to content

Commit

Permalink
Merge pull request #136 from marcandre/nil_to_the_rescue
Browse files Browse the repository at this point in the history
Return `nil` for all syntax errors
  • Loading branch information
marcandre authored Jul 30, 2020
2 parents 386ed20 + 51817ce commit 5c49077
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 5c49077

Please sign in to comment.