Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow methods to be called on class definitions
  • Loading branch information
Mouq committed Nov 3, 2014
1 parent 2bef929 commit ba385fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Grammar.nqp
Expand Up @@ -2356,7 +2356,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}
}
}

:!s
{ nqp::push(@*PACKAGES, $*PACKAGE); }
[
|| <?[{]>
Expand Down Expand Up @@ -2392,7 +2392,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
|| <.panic("Unable to parse $*PKGDECL definition")>
]
{ nqp::pop(@*PACKAGES); }
] || { $/.CURSOR.malformed($*PKGDECL) }
]:!s || { $/.CURSOR.malformed($*PKGDECL) }
}

token declarator {
Expand Down

0 comments on commit ba385fa

Please sign in to comment.