summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 25522e8b0..0ed78d7e3 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -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: