Skip to content

Commit

Permalink
Bring our morename rule more in line with STDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 20, 2010
1 parent cdb2b8f commit 7f8397d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -140,7 +140,16 @@ token name {

token morename {
:my $*QSIGIL := '';
'::' <identifier>
'::'
[
|| <?before '(' | <alpha> >
[
| <identifier>
| '(' ~ ')' <EXPR>
<.panic: "Indirect name lookups not yet implemented">
]
|| <?before '::'> <.panic: "Name component may not be null">
]?
}

token longname {
Expand Down

0 comments on commit 7f8397d

Please sign in to comment.