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

Commit ce7fd7b

Browse files
committed
fix(grammar) A range can contain an unescaped [ symbol.
`[\[]` is strictly equivalent to `[[]`. Both are valid.
1 parent a39ebc5 commit ce7fd7b

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-
( range() | literal() )+
168+
( <class_> | range() | literal() )+
169169
::_class::
170170

171171
#range:

0 commit comments

Comments
 (0)