I'm adding a rule to my ANTLR4 lexer that looks like [/a-zA-Z0-9_?+-.*\u005B-\u005E\u007B-\u007D]+
and it lexes just fine. However, when I add \u002C
to it, regardless of where I add that character, or when I add a literal ,
to it, I get the same error:
chars ',' used multiple times in set [/a-zA-Z0-9_?+-.*\u005B-\u005E\u007B-\u007D\u002C]
There is only one ,
in the set regardless, so I'm unsure what might be causing the error.