Skip to content

Commit

Permalink
Fix some unspace parsing cases (RT#128462 and degenerate unspace)
Browse files Browse the repository at this point in the history
  see RT for analysis/explanation
  • Loading branch information
skids committed Oct 1, 2017
1 parent 4ca1fc3 commit 11070e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Grammar.nqp
Expand Up @@ -3344,7 +3344,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
token term:sym<identifier> {
:my $pos;
<identifier> <!{ $*W.is_type([~$<identifier>]) }> <?before <.unsp>|'('> <![:]>
<identifier> <!{ $*W.is_type([~$<identifier>]) }> [ <?before <.unsp>? '('> | \\ <?before '('> ]
{ $pos := $/.pos }
<args(1)>
{
Expand Down Expand Up @@ -3422,7 +3422,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}
}
[<?{ %colonpairs }> <colonpairs=.O(|%colonpairs)>]?
|| <args(1)>
|| [ \\ <?before '('> ]? <args(1)>
{
if !$<args><invocant> {
my $name := ~$<longname>;
Expand Down

0 comments on commit 11070e0

Please sign in to comment.