aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-22 10:54:53 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2018-01-22 10:54:53 +0100
commite770ada2e9f52b86c8c52f5eb12f3c4b3f9dbd0f (patch)
treeef8335820732d177a6842b8d2954ab40ca333779
parentce7fd7b5a26bdeeee7c8385fd7cabd5686e9af37 (diff)
downloadRegex-e770ada2e9f52b86c8c52f5eb12f3c4b3f9dbd0f.zip
Regex-e770ada2e9f52b86c8c52f5eb12f3c4b3f9dbd0f.tar.gz
Regex-e770ada2e9f52b86c8c52f5eb12f3c4b3f9dbd0f.tar.bz2
fix(grammar) A class can end by a `-` symbol.
The `-` symbol is the range operator. It must be escaped inside a class, except if it is the last symbol of the class.
-rw-r--r--Source/Grammar.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Grammar.pp b/Source/Grammar.pp
index 9e365bf..4176085 100644
--- a/Source/Grammar.pp
+++ b/Source/Grammar.pp
@@ -165,7 +165,7 @@ quantifier:
::negative_class_:: #negativeclass
| ::class_::
)
- ( <class_> | range() | literal() )+
+ ( <class_> | range() | literal() )+ <range>?
::_class::
#range: