void () { final RegExpLexer lexer = new RegExpLexer(EnumSet.of(POSIX_BRACKET_EXPRESSIONS)); doTest("[[:xdigit:]]", """ CLASS_BEGIN ('[') BRACKET_EXPRESSION_BEGIN ('[:') NAME ('xdigit') BRACKET_EXPRESSION_END (':]') CLASS_END (']')""", lexer); }