Skip to content

Commit

Permalink
RakuAST: fix deparsing of E<> markup
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 2, 2023
1 parent c55455d commit 5965d7f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/core.c/RakuAST/Deparse.pm6
Expand Up @@ -646,10 +646,13 @@ class RakuAST::Deparse {
my str $letter = $ast.letter;
my $meta := $ast.meta;

$letter ~ '<'~ deparse-join($ast.atoms) ~ (
$meta
?? '|' ~ deparse-join($meta, $ast.separator) ~ '>'
!! '>'
$letter ~ '<'~ ($letter eq 'E'
?? deparse-join($meta, ';') ~ '>'
!! deparse-join($ast.atoms) ~ (
$meta
?? '|' ~ deparse-join($meta, $ast.separator) ~ '>'
!! '>'
)
)
}

Expand Down

0 comments on commit 5965d7f

Please sign in to comment.