Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/tsq/highlights.scm')
| -rw-r--r-- | runtime/queries/tsq/highlights.scm | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/runtime/queries/tsq/highlights.scm b/runtime/queries/tsq/highlights.scm index 67d22744..856a1da6 100644 --- a/runtime/queries/tsq/highlights.scm +++ b/runtime/queries/tsq/highlights.scm @@ -11,11 +11,6 @@ "_" @constant -[ - "@" - "#" -] @punctuation.special - ":" @punctuation.delimiter [ @@ -27,8 +22,6 @@ "." @operator -(predicate_type) @punctuation.special - (quantifier) @operator (comment) @comment @@ -41,16 +34,16 @@ name: (identifier) @variable.other.member) (named_node - name: (identifier) @variable) - -(predicate - name: (identifier) @function) + name: (identifier) @tag) -(anonymous_node - (string) @string) +((predicate + "#" @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")) +(predicate name: (identifier) @error) -(capture - (identifier) @type) +(capture) @label (escape_sequence) @constant.character.escape |