2021-10-16 10:58:04 +02:00
|
|
|
; 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
|
|
|
|
|
|
|
|
[
|
|
|
|
(one_or_more)
|
|
|
|
(zero_or_one)
|
|
|
|
(zero_or_more)
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
(wildcard_node)
|
|
|
|
(anchor)
|
|
|
|
] @constant.builtin
|
|
|
|
|
|
|
|
[
|
|
|
|
(anonymous_leaf)
|
|
|
|
(string)
|
|
|
|
] @string
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
2021-11-03 04:00:52 +01:00
|
|
|
(field_name) @variable.other.member
|
2021-10-16 10:58:04 +02:00
|
|
|
|
|
|
|
(capture) @label
|
|
|
|
|
|
|
|
(predicate_name) @function
|
|
|
|
|
2021-11-03 04:00:52 +01:00
|
|
|
(escape_sequence) @constant.character.escape
|
2021-10-16 10:58:04 +02:00
|
|
|
|
|
|
|
(node_name) @variable
|