2021-10-16 12:58:04 +04:00
|
|
|
; mark the string passed #match? as a regex
|
|
|
|
(((predicate_name) @function
|
|
|
|
(capture)
|
|
|
|
(string) @string.regexp)
|
|
|
|
(#eq? @function "#match?"))
|
|
|
|
|
|
|
|
; highlight inheritance comments
|
2022-07-22 05:28:32 +04:00
|
|
|
(((comment) @keyword.directive)
|
2022-07-05 15:01:05 +04:00
|
|
|
(#match? @keyword.directive "^; +inherits *:"))
|
2021-10-16 12:58:04 +04:00
|
|
|
|
|
|
|
[
|
|
|
|
"("
|
|
|
|
")"
|
|
|
|
"["
|
|
|
|
"]"
|
|
|
|
] @punctuation.bracket
|
|
|
|
|
|
|
|
":" @punctuation.delimiter
|
2022-06-03 03:41:17 +04:00
|
|
|
"!" @operator
|
2021-10-16 12:58:04 +04:00
|
|
|
|
|
|
|
[
|
|
|
|
(one_or_more)
|
|
|
|
(zero_or_one)
|
|
|
|
(zero_or_more)
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
(wildcard_node)
|
|
|
|
(anchor)
|
|
|
|
] @constant.builtin
|
|
|
|
|
|
|
|
[
|
|
|
|
(anonymous_leaf)
|
|
|
|
(string)
|
|
|
|
] @string
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(field_name) @variable.other.member
|
2021-10-16 12:58:04 +04:00
|
|
|
|
|
|
|
(capture) @label
|
|
|
|
|
2022-07-05 15:01:05 +04:00
|
|
|
((predicate_name) @function
|
2024-01-15 10:33:26 +04:00
|
|
|
(#any-of? @function "#eq?" "#match?" "#any-of?" "#not-any-of?" "#is?" "#is-not?" "#not-same-line?" "#not-kind-eq?" "#set!" "#select-adjacent!" "#strip!"))
|
2022-07-05 15:01:05 +04:00
|
|
|
(predicate_name) @error
|
2021-10-16 12:58:04 +04:00
|
|
|
|
2021-11-03 07:00:52 +04:00
|
|
|
(escape_sequence) @constant.character.escape
|
2021-10-16 12:58:04 +04:00
|
|
|
|
2022-07-05 15:01:05 +04:00
|
|
|
(node_name) @tag
|
|
|
|
(variable) @variable
|