Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't say TTIAR unless next thing looks like term
  • Loading branch information
TimToady committed May 19, 2015
1 parent 97b4db0 commit 03bf80f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Perl6/World.nqp
Expand Up @@ -3433,9 +3433,13 @@ class Perl6::World is HLL::World {
elsif $c.MARKED('baresigil') {
%opts<reason> := "Name must begin with alphabetic character";
}
else {
elsif @locprepost[1] ~~ / ^ \s* <[ $ @ \w ' " ]> / ||
@locprepost[1] ~~ / ^ \s+ <[ ( [ { « . ]> / {
%opts<reason> := "Two terms in a row";
}
elsif @locprepost[1] ~~ / ^ \S / {
%opts<reason> := "Bogus postfix";
}
}
}
}
Expand Down

0 comments on commit 03bf80f

Please sign in to comment.