Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix <routine_def> calls in multi declarators.
  • Loading branch information
jnthn committed May 30, 2011
1 parent e127457 commit 9042f2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Perl6/Grammar.pm
Expand Up @@ -1012,15 +1012,15 @@ grammar Perl6::Grammar is HLL::Grammar {
proto token multi_declarator { <...> }
token multi_declarator:sym<multi> {
<sym> :my $*MULTINESS := 'multi'; <.end_keyword>
<.ws> [ <declarator> || <routine_def> || <.panic: 'Malformed multi'> ]
<.ws> [ <declarator> || <routine_def('sub')> || <.panic: 'Malformed multi'> ]
}
token multi_declarator:sym<proto> {
<sym> :my $*MULTINESS := 'proto'; <.end_keyword>
<.ws> [ <declarator> || <routine_def> || <.panic: 'Malformed proto'> ]
<.ws> [ <declarator> || <routine_def('sub')> || <.panic: 'Malformed proto'> ]
}
token multi_declarator:sym<only> {
<sym> :my $*MULTINESS := 'only'; <.end_keyword>
<.ws> [ <declarator> || <routine_def> || <.panic: 'Malformed only'> ]
<.ws> [ <declarator> || <routine_def('sub')> || <.panic: 'Malformed only'> ]
}
token multi_declarator:sym<null> {
:my $*MULTINESS := '';
Expand Down

0 comments on commit 9042f2d

Please sign in to comment.