re-enable the tests in the parser and start the creation of an error type

This commit is contained in:
Tamo 2021-11-02 17:35:17 +01:00
parent 1327807caa
commit 76a2adb7c3
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
4 changed files with 86 additions and 36 deletions

View file

@ -93,7 +93,7 @@ impl<'a> Filter<'a> {
let condition = match FilterCondition::parse::<GreedyError<Span, ErrorKind>>(expression) {
Ok(fc) => Ok(fc),
Err(e) => Err(Error::UserError(UserError::InvalidFilter {
input: convert_error(Span::new(expression), e).to_string(),
input: convert_error(Span::new_extra(expression, expression), e).to_string(),
})),
}?;
Ok(Self { condition })