nvim-treesitter/queries/query/highlights.scm

32 lines
676 B
Scheme
Raw Normal View History

2020-07-28 07:39:45 -05:00
(string) @string
(escape_sequence) @string.escape
(capture (identifier) @type)
(anonymous_node (identifier) @string)
(predicate name: (identifier) @function)
(named_node name: (identifier) @variable)
(field_definition name: (identifier) @property)
(negated_field "!" @operator (identifier) @property)
2020-07-28 07:39:45 -05:00
(comment) @comment
2020-09-04 13:09:28 -05:00
(quantifier) @operator
(predicate_type) @punctuation.special
2021-04-10 15:18:44 -05:00
"." @operator
2020-09-04 13:09:28 -05:00
[
"["
"]"
"("
")"
] @punctuation.bracket
2021-04-10 15:18:44 -05:00
":" @punctuation.delimiter
["@" "#"] @punctuation.special
"_" @constant
2021-04-10 15:18:44 -05:00
2021-08-13 18:15:18 -05:00
((parameters (identifier) @number)
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
((program . (comment) @include)
(#match? @include "^;\ +inherits\ *:"))