Skip to content

Commit

Permalink
Add null check on lex_strterm in heredoc block
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonmcdonald committed May 23, 2015
1 parent b97c6d1 commit 4a79170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parse.y
Expand Up @@ -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:
Expand Down

0 comments on commit 4a79170

Please sign in to comment.