Skip to content

Commit

Permalink
Fix for named unicode parameters, hopefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 19, 2009
1 parent e0c6910 commit f55aa6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/signature.pm
Expand Up @@ -243,13 +243,13 @@ method ast($high_level?) {
my $names := $null_reg;
if !$_<slurpy> && $_<names> && +@($_<names>) {
my $pir := " %r = root_new ['parrot'; 'ResizableStringArray']\n";
for @($_<names>) { $pir := $pir ~ " push %r, '" ~ ~$_ ~ "'\n"; }
for @($_<names>) { $pir := $pir ~ ' push %r, unicode:"' ~ ~$_ ~ "\"\n"; }
$names := PAST::Op.new( :inline($pir) );
}
my $type_captures := $null_reg;
if $_<type_captures> && +@($_<type_captures>) {
my $pir := " %r = root_new ['parrot'; 'ResizableStringArray']\n";
for @($_<type_captures>) { $pir := $pir ~ " push %r, '" ~ ~$_ ~ "'\n"; }
for @($_<type_captures>) { $pir := $pir ~ ' push %r, unicode:"' ~ ~$_ ~ "\"\n"; }
$type_captures := PAST::Op.new( :inline($pir) );
}

Expand Down

0 comments on commit f55aa6f

Please sign in to comment.