Fix undefined lines in lexer error messages
Fix lexer error message priorities