Improved lexer error messages