Skip to content

Commit

Permalink
replace .panic: "missing..." with .missing: ...
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Lenz <mlenz@noris.net>
  • Loading branch information
timo authored and moritz committed Dec 18, 2012
1 parent 1e37817 commit 22518b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2713,8 +2713,8 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
[ <?{ $start ne $stop }>
<.ws>
[ <?[ \[ \{ \( \< ]> <.obs('brackets around replacement', 'assignment syntax')> ]?
[ <infixish> || <panic: "Missing assignment operator"> ]
[ <?{ $<infixish>.Str eq '=' }> || <.panic: "Malformed assignment operator"> ]
[ <infixish> || <.missing: "assignment operator"> ]
[ <?{ $<infixish>.Str eq '=' }> || <.malformed: "assignment operator"> ]
# XXX When we support it, above check should add: || $<infixish><infix_postfix_meta_operator>[0]
<.ws>
[ <right=.EXPR('i')> || <.panic: "Assignment operator missing its expression"> ]
Expand Down

0 comments on commit 22518b8

Please sign in to comment.