Skip to content

Commit a6f47a6

Browse files
Fix comparison operators in JSON Path grammar.
Removed function names from `comp_op` operators rule("in", "nin", "size", "noneOf", "anyOf", "subsetOf") to align with the intended grammar restrictions.
1 parent 25ca480 commit a6f47a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/grammar/json_path_9535.pest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abs_singular_query = { root ~ singular_query_segments }
4040
singular_query_segments = { (S ~ (name_segment | index_segment))* }
4141
name_segment = { ("[" ~ name_selector ~ "]") | ("." ~ member_name_shorthand) }
4242
index_segment = { "[" ~ index_selector ~ "]" }
43-
comp_op = { "==" | "!=" | "<=" | ">=" | "<" | ">" | "in" | "nin" | "size" | "noneOf" | "anyOf" | "subsetOf"}
43+
comp_op = { "==" | "!=" | "<=" | ">=" | "<" | ">" }
4444

4545
LCALPHA = { 'a'..'z' }
4646

0 commit comments

Comments
 (0)