Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

suggest \- as well as .. in char class

sirrobert++
  • Loading branch information...
commit 64edd1c707fa36ae4b1cd1fdce083a19906bf463 1 parent 47e39ad
Larry Wall TimToady authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  STD.pm6
2  STD.pm6
@@ -4414,7 +4414,7 @@ grammar Q is STD {
4414 4414 { $*CCSTATE = '..'; }
4415 4415 }
4416 4416
4417   - token escape:sym<-> { '-' <?{ $*CCSTATE ne '' }> \s* <!stopper> \S <.obs('- as character range','..')> }
  4417 + token escape:sym<-> { '-' <?{ $*CCSTATE ne '' }> \s* <!stopper> \S <.obs('- as character range','.. (or \\- if you mean a literal hyphen)')> }
4418 4418 token escape:ch { $<ch> = [\S] <.ccstate($<ch>.Str)> }
4419 4419
4420 4420 token backslash:stopper { <text=.stopper> }

0 comments on commit 64edd1c

Please sign in to comment.
Something went wrong with that request. Please try again.