nvim-treesitter/queries/query/highlights.scm
Gregory Anders dbbedfec88
query: Only highlight predicate name (#1461)
Only highlight the name of the predicate using TSFunction rather than
the entire predicate block.
2021-07-01 20:43:09 +00:00

27 lines
478 B
Scheme

(string) @string
(escape_sequence) @string.escape
(capture) @type
(anonymous_node) @string
(predicate name: (identifier) @function)
(named_node
name: (identifier) @variable
(field_definition
name: (identifier) @property))
(comment) @comment
(quantifier) @operator
(predicate_type) @punctuation.special
"." @operator
[
"["
"]"
"("
")"
] @punctuation.bracket
":" @punctuation.delimiter
((program . (comment) @include)
(#match? @include "^;\ +inherits\ *:"))