Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
need to panic now!
Otherwise it would continue and complain about missing method NQPMu.ast because of lacking $<term_init>.
  • Loading branch information
FROGGS committed Jan 31, 2014
1 parent 2f948dd commit d5f7c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -2087,7 +2087,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
# STD.pm6 uses <defterm> here, but we need different
# action methods
| '\\' <identifier> <.ws>
[ <term_init=initializer> || <.sorry("Term definition requires an initializer")> ]
[ <term_init=initializer> || <.panic("Term definition requires an initializer")> ]
| <variable_declarator>
[
|| <?{ $*SCOPE eq 'has' }> <.newpad> <initializer>? { $*ATTR_INIT_BLOCK := $*W.pop_lexpad() }
Expand Down

0 comments on commit d5f7c71

Please sign in to comment.