Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snarkyboojum/488693 to your computer and use it in GitHub Desktop.
Save snarkyboojum/488693 to your computer and use it in GitHub Desktop.
From 964a1b076d07cbf88e970c986f037bd536bad463 Mon Sep 17 00:00:00 2001
From: snarkyboojum <snarkyboojum@gmail.com>
Date: Sat, 24 Jul 2010 23:26:25 +1000
Subject: [PATCH] Change message for incorrect character range usage
---
src/Regex/P6Regex/Grammar.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Regex/P6Regex/Grammar.pm b/src/Regex/P6Regex/Grammar.pm
index ebbcaee..8902a21 100644
--- a/src/Regex/P6Regex/Grammar.pm
+++ b/src/Regex/P6Regex/Grammar.pm
@@ -164,7 +164,7 @@ grammar Regex::P6Regex::Grammar is HLL::Grammar;
<.normspace>?
[
| '[' $<charspec>=(
- | \s* '-' <.obs: 'hyphen in enumerated character class','..'>
+ | \s* '-' <.obs: '- as character range','..'>
| \s* [ \\ (.) | (<-[\]\\]>) ] [ \s* '..' \s* (.) ]?
)*
\s* ']'
--·
1.7.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment