void () { final RegExpLexer lexer = new RegExpLexer(EnumSet.of(DANGLING_METACHARACTERS, OMIT_NUMBERS_IN_QUANTIFIERS, OMIT_BOTH_NUMBERS_IN_QUANTIFIERS)); doTest("a{,}", """ CHARACTER ('a') LBRACE ('{') COMMA (',') RBRACE ('}')""", lexer); doTest("x\\{,}", """ CHARACTER ('x') ESC_CHARACTER ('\\{') CHARACTER (',') CHARACTER ('}')""", lexer); }