FIX: missing caret escaping support in lexer.