Improve error message for LEX_009 and LEX_011