Skip to content

Commit

Permalink
Fix index rules with integer +/- : was using incorrect syntax to capt…
Browse files Browse the repository at this point in the history
…ure $<op>
  • Loading branch information
coke committed Dec 17, 2009
1 parent 89eca8a commit 25dd2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Partcl/Grammar.pm
Expand Up @@ -93,7 +93,7 @@ token int:sym<hex> { 0<[Xx]> $<digits>=(<[0..9A..Fa..f]>+) }
token int:sym<oct> { 0<[Oo]>? $<digits>=(<[0..7]>+) }

proto token index { <...> }
token index:sym<int> { <a=.integer> [ <op=[+\-]> <b=.integer> ]? }
token index:sym<int> { <a=.integer> [ $<op>=[<[+\-]>] <b=.integer> ]? }
token index:sym<end> { 'end' }
token index:sym<end+> { 'end+' <a=.integer>}
token index:sym<end-> { 'end-' <a=.integer>}
Expand Down

0 comments on commit 25dd2f4

Please sign in to comment.