Update filter-parser/src/lib.rs

Co-authored-by: Tamo <irevoire@protonmail.ch>
This commit is contained in:
unvalley 2022-11-01 01:32:54 +09:00 committed by GitHub
parent d55f0e2e53
commit 0d43ddbd85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,9 +343,7 @@ fn parse_error_reserved_keyword(input: Span) -> IResult<FilterCondition> {
} }
} }
/** /// primary = (WS* "(" WS* expression WS* ")" WS*) | geoRadius | condition | exists | not_exists | to
primary = (WS* "(" WS* expression WS* ")" WS*) | geoRadius | condition | exists | not_exists | to
*/
fn parse_primary(input: Span, depth: usize) -> IResult<FilterCondition> { fn parse_primary(input: Span, depth: usize) -> IResult<FilterCondition> {
if depth > MAX_FILTER_DEPTH { if depth > MAX_FILTER_DEPTH {
return Err(nom::Err::Error(Error::new_from_kind(input, ErrorKind::DepthLimitReached))); return Err(nom::Err::Error(Error::new_from_kind(input, ErrorKind::DepthLimitReached)));