lexer: further slight improvements to lexer errors