nvim-treesitter/queries/query/highlights.scm
Santos Gallegos 2ad1f76b7d Query: highlight modeline
Matches the first comment and the beginning from the pattern
52397aaa0d/runtime/lua/vim/treesitter/query.lua (L25)
2021-02-12 08:02:00 +01:00

23 lines
416 B
Scheme

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