aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-22 10:49:55 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-22 10:49:55 +0100
commitce7fd7b5a26bdeeee7c8385fd7cabd5686e9af37 (patch)
tree15db968eb5e6b6ccb53aa54a0399e58fd9b4bc7d
parenta39ebc52732cb21c40d43ca2ce610072e5ef7695 (diff)
downloadRegex-ce7fd7b5a26bdeeee7c8385fd7cabd5686e9af37.zip
Regex-ce7fd7b5a26bdeeee7c8385fd7cabd5686e9af37.tar.gz
Regex-ce7fd7b5a26bdeeee7c8385fd7cabd5686e9af37.tar.bz2
fix(grammar) A range can contain an unescaped `[` symbol.
`[\[]` is strictly equivalent to `[[]`. Both are valid.
-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..9e365bf 100644
--- a/Source/Grammar.pp
+++ b/Source/Grammar.pp
@@ -165,7 +165,7 @@ quantifier:
::negative_class_:: #negativeclass
| ::class_::
)
- ( range() | literal() )+
+ ( <class_> | range() | literal() )+
::_class::
#range: