Fix lexing of comments, and improve error reporting in lexer.