pub fn is_syntax_error(err: &ParseError) -> bool
Return true if the error kind is an invalid syntax error.
true