Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[actions.pm] construct twigilled variables right
In <http://rt.perl.org/rt3/Ticket/Display.html?id=67846>, :$.bar
turned into $1bar. The <twigil> subrule was called with a
postfix:<?>, turning its submatch into an array.  The colonpair
action method now takes this into account. This is a first step
towards fixing #67846. Rakudo still doesn't conform to the semantics
explained in L<S06/Attributive parameters>, but now it at least has a
chance.
  • Loading branch information
Carl Masak committed Sep 24, 2009
1 parent e9a7966 commit 722f82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/actions.pm
Expand Up @@ -2919,7 +2919,7 @@ method colonpair($/, $key) {
if $<desigilname><longname> {
$pair_key := PAST::Val.new( :value( ~$<desigilname> ) );
$pair_val := PAST::Var.new(
:name( ~$<sigil> ~ ~$<twigil> ~ $<desigilname> )
:name( ~$<sigil> ~ ~$<twigil>[0] ~ $<desigilname> )
);
}
else {
Expand Down

0 comments on commit 722f82c

Please sign in to comment.