Permalink
Browse files

suggest \- as well as .. in char class

sirrobert++
  • Loading branch information...
1 parent 47e39ad commit 64edd1c707fa36ae4b1cd1fdce083a19906bf463 @TimToady TimToady committed Oct 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 STD.pm6
View
@@ -4414,7 +4414,7 @@ grammar Q is STD {
{ $*CCSTATE = '..'; }
}
- token escape:sym<-> { '-' <?{ $*CCSTATE ne '' }> \s* <!stopper> \S <.obs('- as character range','..')> }
+ token escape:sym<-> { '-' <?{ $*CCSTATE ne '' }> \s* <!stopper> \S <.obs('- as character range','.. (or \\- if you mean a literal hyphen)')> }
token escape:ch { $<ch> = [\S] <.ccstate($<ch>.Str)> }
token backslash:stopper { <text=.stopper> }

0 comments on commit 64edd1c

Please sign in to comment.