Lexer optimizations