Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit e770ada

Browse files
committed
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.
1 parent ce7fd7b commit e770ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Grammar.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
::negative_class_:: #negativeclass
166166
| ::class_::
167167
)
168-
( <class_> | range() | literal() )+
168+
( <class_> | range() | literal() )+ <range>?
169169
::_class::
170170

171171
#range:

0 commit comments

Comments
 (0)