Skip to content

Commit 089cfc5

Browse files
committed
Don't proceed != as negate operator
1 parent eb86e0c commit 089cfc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/filter/parser.peg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ ExistsExpr <- col:(Identifier !Operator !"(" / Identifier &EOF) {
228228
/ Operator { // panics when the rule doesn't match
229229
return nil, nil
230230
}
231-
Negate <- ("!" &Operator / "!" &")" / "!" &[&|] / "!" &EOF) {
231+
Negate <- ("!" !"=" &Operator / "!" &")" / "!" &[&|] / "!" &EOF) {
232232
panic(fmt.Sprintf("unexpected negate operator %q at pos %d", string(c.text), c.pos.col))
233233
}
234-
/ "!"+ {
234+
/ "!"+ !"=" {
235235
ops := string(c.text)
236236
if len(ops) > 1 {
237237
panic(fmt.Sprintf("unexpected negate operators %q at pos %d", string(c.text), c.pos.col))

0 commit comments

Comments
 (0)