Skip to content

Commit

Permalink
Probably temporary fix for R#3000
Browse files Browse the repository at this point in the history
Somehow the empty outer () or [] is being included when it shouldn't.
Instead of assuming some internal problem, just assume we're done.
  • Loading branch information
lizmat committed Jun 29, 2019
1 parent 2dc68c9 commit c227693
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Perl6/Actions.nqp
Expand Up @@ -6631,8 +6631,8 @@ class Perl6::Actions is HLL::Actions does STDActions {
}
my $semi := 0;
repeat until $semi >= $numsemis {
my $EXPR := $<semilist><statement>[$semi]<EXPR> //
nqp::die("internal problem: parser did not give circumfix an EXPR");
my $EXPR := $<semilist><statement>[$semi]<EXPR> // last;
# nqp::die("internal problem: parser did not give circumfix an () EXPR");
if $EXPR<colonpair> { # might start with a colonpair
my @fan := nqp::list($EXPR.ast);
migrate_colonpairs($/, @fan);
Expand Down Expand Up @@ -6880,8 +6880,8 @@ class Perl6::Actions is HLL::Actions does STDActions {
}
my $semi := 0;
repeat until $semi >= $numsemis {
my $EXPR := $<semilist><statement>[$semi]<EXPR> //
nqp::die("internal problem: parser did not give circumfix an EXPR");
my $EXPR := $<semilist><statement>[$semi]<EXPR> // last;
# nqp::die("internal problem: parser did not give circumfix an [] EXPR");
if $EXPR<colonpair> { # might start with a colonpair
my @fan := nqp::list($EXPR.ast);
migrate_colonpairs($/, @fan);
Expand Down

0 comments on commit c227693

Please sign in to comment.