Skip to content

Commit

Permalink
Make sure the heredoc stop is stringified
Browse files Browse the repository at this point in the history
The RakuAST::Heredoc class expects a Str
  • Loading branch information
lizmat committed Jan 3, 2023
1 parent 0d49c2e commit b5df6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raku/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ role Raku::Common {
# Get it trimmed and AST updated.
my $heredoc := $herestub.orignode.MATCH.ast;
$heredoc.replace-segments-from($doc.MATCH.ast);
$heredoc.set-stop($stop);
$heredoc.set-stop(~$stop);
$heredoc.trim;
}
else {
Expand Down

0 comments on commit b5df6e2

Please sign in to comment.