grammars-v4
                                
                                
                                
                                    grammars-v4 copied to clipboard
                            
                            
                            
                        xsd-regex should not treat '{' as a normal Char
In regexLexer.g4, it says:
Char : ~('.' | '\\' | '?' | '*' | '+' | '(' | ')' | '|' | '[' | ']')
which don't exclude '{', which makes the lexer treat '{' as a normal Char.
e.g.a{1}
https://regex101.com/r/R7NJ4r/1/
FYI
I'm hitting the same problem.
x{0} parses as 4 atoms, but should parse as one atom and a quantifier.
Adding the curly braces to
Char : ~('.' | '\\' | '?' | '*' | '+' | '(' | ')' | '|' | '[' | ']' | '{' | '}')
does appear to fix the problem.