Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Parse variable shape in declarations
  • Loading branch information
perlpilot committed Jan 4, 2010
1 parent a867b39 commit 30136a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Perl6/Grammar.pm
Expand Up @@ -563,6 +563,14 @@ token variable_declarator {
:my $*IN_DECL := 'variable';
<variable>
{ $*IN_DECL := '' }
[
<.unsp>?
$<shape>=[
| '(' ~ ')' <signature>
| '[' ~ ']' <semilist>
| '{' ~ '}' <semilist>
]*
]?
<trait>*
}

Expand Down

0 comments on commit 30136a1

Please sign in to comment.