Skip to content

Commit

Permalink
Merge pull request #4567 from tbrowder/fix-heredoc
Browse files Browse the repository at this point in the history
Prevent heredocs continuing after a block
  • Loading branch information
tbrowder committed Oct 15, 2021
2 parents d6d90f4 + a78c9f0 commit 308d685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -1069,11 +1069,11 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
'{'
<!!{ $*VARIABLE := '' if $*VARIABLE; 1 }>
<statementlist(1)>
{ $*CURPAD := $*W.pop_lexpad() }
[<.cheat_heredoc> || '}']
<?ENDSTMT>
|| <.missing_block($borg, $has_mystery)>
]
{ $*CURPAD := $*W.pop_lexpad() }
}
token unitstart { <?> }
Expand Down

0 comments on commit 308d685

Please sign in to comment.