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,8 +4150,10 @@ parser_yylex(parser_state *p) ...@@ -4150,8 +4150,10 @@ parser_yylex(parser_state *p)
p->lineno++; p->lineno++;
p->column = 0; p->column = 0;
if (p->parsing_heredoc != NULL) { if (p->parsing_heredoc != NULL) {
if (p->lex_strterm) {
return parse_string(p); return parse_string(p);
} }
}
goto retry; goto retry;
default: default:
break; break;
......
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