Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactor handling of $*QSIGIL in token variable to avoid 'return ()'.
  • Loading branch information
pmichaud committed Aug 18, 2010
1 parent 7f39959 commit 72f5b8b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Perl6/Grammar.pm
Expand Up @@ -790,16 +790,7 @@ token variable {
| <sigil> <?[<[]> <postcircumfix>
| $<sigil>=['$'] $<desigilname>=[<[/_!]>]
| <sigil> <?{ $*IN_DECL }>
| <?>
{
if $*QSIGIL {
return ();
}
else {
$/.CURSOR.panic("Non-declarative sigil is missing its name");
}
}

| <!{ $*QSIGIL }> <.panic("Non-declarative sigil is missing its name")>
]
]
[ <?{ $<twigil> && $<twigil>[0] eq '.' }>
Expand Down

0 comments on commit 72f5b8b

Please sign in to comment.