Skip to content

Commit

Permalink
Allow invocant colon at EOF.
Browse files Browse the repository at this point in the history
Fixes RT #125440.
  • Loading branch information
jnthn committed Jun 20, 2015
1 parent a0fa1a7 commit 936ef82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -4080,7 +4080,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}
token infix:sym<:> {
<?{ $*INVOCANT_OK && $*GOAL ne '!!' }>
<.unsp>? <sym> <?before \s | <.terminator> >
<.unsp>? <sym> <?before \s | <.terminator> | $ >
<O('%comma, :fiddly<0>')>
[ <?{ $*INVOCANT_OK }> || <.panic: "Invocant colon not allowed here"> ]
{ $*INVOCANT_OK := 0; }
Expand Down

0 comments on commit 936ef82

Please sign in to comment.