elaborate LEXER_SPECIAL pattern processing