Specify that the NULL keyword is a keyword too

This commit is contained in:
Kerollmops 2023-03-13 17:40:34 +01:00
parent df48ac8803
commit c25779afba
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -178,7 +178,10 @@ fn is_syntax_component(c: char) -> bool {
}
fn is_keyword(s: &str) -> bool {
matches!(s, "AND" | "OR" | "IN" | "NOT" | "TO" | "EXISTS" | "_geoRadius" | "_geoBoundingBox")
matches!(
s,
"AND" | "OR" | "IN" | "NOT" | "TO" | "EXISTS" | "NULL" | "_geoRadius" | "_geoBoundingBox"
)
}
#[cfg(test)]