Skip to content
Permalink
Browse files
Clear parsing_heredoc at the end of file
  • Loading branch information
matz committed Dec 10, 2016
1 parent 8c26efd commit 7b968ca893b5c24e07ba67e4e5100d93a4024418
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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;
}
}

0 comments on commit 7b968ca

Please sign in to comment.