summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 616b2fe4f4..76386e47ed 100644
--- a/parse.y
+++ b/parse.y
@@ -5331,7 +5331,7 @@ string_content : tSTRING_CONTENT
$<num>$ = p->heredoc_indent;
p->heredoc_indent = 0;
}
- compstmt tSTRING_DEND
+ compstmt string_dend
{
COND_POP();
CMDARG_POP();
@@ -5348,6 +5348,10 @@ string_content : tSTRING_CONTENT
}
;
+string_dend : tSTRING_DEND
+ | END_OF_INPUT
+ ;
+
string_dvar : tGVAR
{
/*%%%*/