Commit f0424ff3 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2803 from carsonmcdonald/specinheredoc

Add null check on lex_strterm in heredoc block
parents b97c6d10 4a791701
......@@ -4150,7 +4150,9 @@ parser_yylex(parser_state *p)
p->lineno++;
p->column = 0;
if (p->parsing_heredoc != NULL) {
return parse_string(p);
if (p->lex_strterm) {
return parse_string(p);
}
}
goto retry;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment