diff --git a/src/parser/ast.rs b/src/parser/ast.rs index 0d789c33..fe28207b 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -473,7 +473,9 @@ impl ParserError { | ParserError::ParseBigInt(location) | ParserError::UnexpectedChar(_, location) => Some(location.clone()), ParserError::Utf8Error(location) => location.as_ref().cloned(), - _ => None, + ParserError::IO(_) + | ParserError::LexicalError(_) + | ParserError::InvalidSingleQuotedCharacter(_) => None, } }