Added error recovery to lexer.