summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-07-13 09:09:12 -0500
committerGitHub <noreply@github.com>2021-07-13 14:09:12 +0000
commit2a0097828d35a170e43616777c06611d881324c9 (patch)
tree50900dfd598ef81e6b3a0293e5ee03e813d5cc94 /queries
parent647268183f8eb164bf8c94ec1c87634f51f5c34a (diff)
Query: update highlight queries (#1553)
This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
Diffstat (limited to 'queries')
-rw-r--r--queries/query/highlights.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm
index e94d5f50..19f2fbb0 100644
--- a/queries/query/highlights.scm
+++ b/queries/query/highlights.scm
@@ -1,12 +1,10 @@
(string) @string
(escape_sequence) @string.escape
-(capture) @type
-(anonymous_node) @string
+(capture (identifier) @type)
+(anonymous_node (identifier) @string)
(predicate name: (identifier) @function)
-(named_node
- name: (identifier) @variable
- (field_definition
- name: (identifier) @property))
+(named_node name: (identifier) @variable)
+(field_definition name: (identifier) @property)
(comment) @comment
(quantifier) @operator
@@ -22,6 +20,8 @@
] @punctuation.bracket
":" @punctuation.delimiter
+"@" @punctuation.special
+"_" @constant
((program . (comment) @include)
(#match? @include "^;\ +inherits\ *:"))