From c25779afba1e7fadd9365422db87f2e0b5ec3635 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 13 Mar 2023 17:40:34 +0100 Subject: [PATCH] Specify that the NULL keyword is a keyword too --- filter-parser/src/value.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filter-parser/src/value.rs b/filter-parser/src/value.rs index 2296c0769..9a0a5e710 100644 --- a/filter-parser/src/value.rs +++ b/filter-parser/src/value.rs @@ -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)]