Add IN and NOT IN operators

Closes #1532
This commit is contained in:
Tobie Morgan Hitchcock 2022-12-18 18:14:07 +00:00
parent a2038f239b
commit 3ab5a9fffe

View file

@ -211,6 +211,8 @@ pub fn phrases(i: &str) -> IResult<&str, Operator> {
map(tag_no_case("INSIDE"), |_| Operator::Inside),
map(tag_no_case("OUTSIDE"), |_| Operator::Outside),
map(tag_no_case("INTERSECTS"), |_| Operator::Intersects),
map(tag_no_case("NOT IN"), |_| Operator::NotInside),
map(tag_no_case("IN"), |_| Operator::Inside),
)),
))(i)?;
let (i, _) = shouldbespace(i)?;