Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Break twigil out into protoregex and add missing lookaheads to fix so…
…me wrong parsing.
  • Loading branch information
jnthn committed Feb 4, 2010
1 parent a230972 commit e0004fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -457,7 +457,13 @@ token variable {

token sigil { <[$@%&]> }

token twigil { <[*!?.^:]> }
proto token twigil { <...> }
token twigil:sym<.> { <sym> }
token twigil:sym<!> { <sym> }
token twigil:sym<^> { <sym> <?before \w> }
token twigil:sym<:> { <sym> <?before \w> }
token twigil:sym<*> { <sym> }
token twigil:sym<?> { <sym> }

proto token package_declarator { <...> }
token package_declarator:sym<package> {
Expand Down

0 comments on commit e0004fe

Please sign in to comment.