Skip to content

Commit 27322b7

Browse files
authored
Add curly brackets to excluded regexLexer chars (#4447)
* Adds curly brackets to excluded chars in regexLexer to allow for exact quantity clauses Signed-off-by: Michael Han <han93008@gmail.com> * add newline to example-exact-quantity.txt --------- Signed-off-by: Michael Han <han93008@gmail.com>
1 parent 2a51024 commit 27322b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[a-z]{3}

xsd-regex/regexLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PLUS : '+';
4949
QUESTION : '?';
5050
STAR : '*';
5151
WildcardEsc : '.';
52-
Char : ~('.' | '\\' | '?' | '*' | '+' | '(' | ')' | '|' | '[' | ']');
52+
Char : ~('.' | '\\' | '?' | '*' | '+' | '(' | ')' | '|' | '[' | ']' | '{' | '}');
5353

5454
// Quantifier's quantity rule support
5555
StartQuantity: '{' -> pushMode(QUANTITY);

0 commit comments

Comments
 (0)