Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix infix:sym<,>
  • Loading branch information
FROGGS committed Mar 24, 2013
1 parent 85bbba6 commit 5bfeb4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/Perl6/P5Grammar.pm
Expand Up @@ -3485,8 +3485,11 @@ grammar Perl6::P5Grammar is HLL::Grammar does STD5 {
{ <sym> <O('%assignment')> }

## list item separator
token infix:sym<,>
{ <sym> { $<O><fiddly> := 0; } <O('%comma')> }
# token infix:sym<,>
# { <sym> { $<O><fiddly> := 0; } <O('%comma')> }
token infix:sym<,> {
<sym> <O('%comma')>
}

token infix:sym«=>»
{ <sym> { $<O><fiddly> := 0; } <O('%comma')> }
Expand Down
3 changes: 2 additions & 1 deletion test.pl
Expand Up @@ -32,6 +32,7 @@
say $s;
#sub b ($x) { say $x } # Method 'multisig' not found for invocant of class 'Perl6::P5Grammar'
#for my $x (10..13) { say $x; } # scoped variables not yet implemented. Sorry.
say "16", 17;
}

say "16";
say "18";

0 comments on commit 5bfeb4a

Please sign in to comment.