mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-26 03:13:29 +04:00
42d780b103
* add tree-sitter-edoc * fix escape character capture in markdown queries * add field negation operator "!" to tsq highlights
48 lines
688 B
Scheme
48 lines
688 B
Scheme
; mark the string passed #match? as a regex
|
|
(((predicate_name) @function
|
|
(capture)
|
|
(string) @string.regexp)
|
|
(#eq? @function "#match?"))
|
|
|
|
; highlight inheritance comments
|
|
((query . (comment) @keyword.directive)
|
|
(#match? @keyword.directive "^;\ +inherits *:"))
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"["
|
|
"]"
|
|
] @punctuation.bracket
|
|
|
|
":" @punctuation.delimiter
|
|
"!" @operator
|
|
|
|
[
|
|
(one_or_more)
|
|
(zero_or_one)
|
|
(zero_or_more)
|
|
] @operator
|
|
|
|
[
|
|
(wildcard_node)
|
|
(anchor)
|
|
] @constant.builtin
|
|
|
|
[
|
|
(anonymous_leaf)
|
|
(string)
|
|
] @string
|
|
|
|
(comment) @comment
|
|
|
|
(field_name) @variable.other.member
|
|
|
|
(capture) @label
|
|
|
|
(predicate_name) @function
|
|
|
|
(escape_sequence) @constant.character.escape
|
|
|
|
(node_name) @variable
|