Improve parser for NOT EXISTS filter

Allow multiple spaces between NOT and EXISTS
This commit is contained in:
Loïc Lecrenier 2022-06-15 09:14:19 +02:00
parent 0388b2d463
commit a5c9162250
3 changed files with 36 additions and 19 deletions

View file

@ -48,7 +48,7 @@ fn quoted_by(quote: char, input: Span) -> IResult<Token> {
))
}
/// value = WS* ~ ( word | singleQuoted | doubleQuoted) ~ WS*
/// value = WS* ( word | singleQuoted | doubleQuoted) WS*
pub fn parse_value<'a>(input: Span<'a>) -> IResult<Token<'a>> {
// to get better diagnostic message we are going to strip the left whitespaces from the input right now
let (input, _) = take_while(char::is_whitespace)(input)?;