queries: Add 'not-eq' and 'not-match' predicates to TSQ highlights

This commit is contained in:
Michael Davis 2025-02-02 16:37:50 -05:00
parent 93fa990e56
commit 382401020c
No known key found for this signature in database

View file

@ -40,7 +40,7 @@
"#" @function.builtin
name: (identifier) @function.builtin @_name
type: (predicate_type) @function.builtin)
(#any-of? @_name "eq" "match" "any-of" "not-any-of" "is" "is-not" "not-same-line" "not-kind-eq" "set" "select-adjacent" "strip"))
(#any-of? @_name "eq" "not-eq" "match" "not-match" "any-of" "not-any-of" "is" "is-not" "not-same-line" "not-kind-eq" "set" "select-adjacent" "strip"))
(predicate name: (identifier) @error)
(capture) @label