aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-23 10:47:11 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-23 10:47:11 +0100
commitc8df174df9c3baa0a459ef32c3d9a2f5fdc4571d (patch)
tree9498750f51ecb45b09518222ee7fbe36d3060cd4
parente49d6e56fe157e32013f0358e774d040157f351d (diff)
parente770ada2e9f52b86c8c52f5eb12f3c4b3f9dbd0f (diff)
downloadRegex-c8df174df9c3baa0a459ef32c3d9a2f5fdc4571d.zip
Regex-c8df174df9c3baa0a459ef32c3d9a2f5fdc4571d.tar.gz
Regex-c8df174df9c3baa0a459ef32c3d9a2f5fdc4571d.tar.bz2
fix(grammar) A range can contain unescaped `[` and `-`.HEADmaster
-rw-r--r--Source/Grammar.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Grammar.pp b/Source/Grammar.pp
index a0e4108..4176085 100644
--- a/Source/Grammar.pp
+++ b/Source/Grammar.pp
@@ -165,7 +165,7 @@ quantifier:
::negative_class_:: #negativeclass
| ::class_::
)
- ( range() | literal() )+
+ ( <class_> | range() | literal() )+ <range>?
::_class::
#range: