Skip to content

Commit

Permalink
Clear parsing_heredoc at the end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Dec 10, 2016
1 parent 8c26efd commit 7b968ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mrbgems/mruby-compiler/core/parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -3946,6 +3946,7 @@ parse_string(parser_state *p)
}
}
if ((len-1 == hinf->term_len) && (strncmp(s, hinf->term, len-1) == 0)) {
if (c < 0) p->parsing_heredoc = NULL;
return tHEREDOC_END;
}
}
Expand Down

0 comments on commit 7b968ca

Please sign in to comment.