Change the IS NULL filter syntax to use the IS keyword

This commit is contained in:
Clément Renault
2023-03-14 10:31:04 +01:00
parent c25779afba
commit 030263caa3
3 changed files with 21 additions and 11 deletions

View File

@ -180,7 +180,16 @@ fn is_syntax_component(c: char) -> bool {
fn is_keyword(s: &str) -> bool {
matches!(
s,
"AND" | "OR" | "IN" | "NOT" | "TO" | "EXISTS" | "NULL" | "_geoRadius" | "_geoBoundingBox"
"AND"
| "OR"
| "IN"
| "NOT"
| "TO"
| "EXISTS"
| "IS"
| "NULL"
| "_geoRadius"
| "_geoBoundingBox"
)
}