Skip to content

Commit

Permalink
Allow dotted form of postfix operator after unary postfix hyper opera…
Browse files Browse the repository at this point in the history
…tor, but only for non-wordy operators

The previous version which special cased postfix:<i> only seemed too fragile.
Now the dotted form is allowed only for non-wordy operators.
  • Loading branch information
usev6 committed Dec 21, 2014
1 parent 27a9887 commit c941b0b
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 @@ -3695,7 +3695,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
[ ['.' <.unsp>?]? <postfix_prefix_meta_operator> <.unsp>?]**0..1
[
| <OPER=postfix>
| '.' <![i]> <OPER=postfix> ## postfix operator called as method, but not postfix:<i>
| '.' <?before \W> <OPER=postfix> ## dotted form of postfix operator (non-wordy only)
| <OPER=postcircumfix>
| <OPER=dotty>
| <OPER=privop>
Expand Down

0 comments on commit c941b0b

Please sign in to comment.