Merge pull request #2803 from carsonmcdonald/specinheredoc

Add null check on lex_strterm in heredoc block
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-05-24 01:40:51 +09:00
+3 -1
View File
@@ -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: