2024-12-27 09:57:53 -05:00
|
|
|
((program
|
|
|
|
.
|
|
|
|
(comment)*
|
|
|
|
.
|
|
|
|
(comment) @keyword.import)
|
|
|
|
(#match? @keyword.import "^;+ *inherits *:"))
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2024-12-27 09:57:53 -05:00
|
|
|
((parameters
|
|
|
|
(identifier) @constant.numeric)
|
|
|
|
(#match? @constant.numeric "^[-+]?[0-9]+(.[0-9]+)?$"))
|
|
|
|
|
|
|
|
"_" @constant
|
2021-10-16 03:58:04 -05:00
|
|
|
|
|
|
|
":" @punctuation.delimiter
|
|
|
|
|
|
|
|
[
|
2024-12-27 09:57:53 -05:00
|
|
|
"["
|
|
|
|
"]"
|
|
|
|
"("
|
|
|
|
")"
|
|
|
|
] @punctuation.bracket
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2024-12-27 09:57:53 -05:00
|
|
|
"." @operator
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2024-12-27 09:57:53 -05:00
|
|
|
(quantifier) @operator
|
2021-10-16 03:58:04 -05:00
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
2024-12-27 09:57:53 -05:00
|
|
|
(negated_field
|
|
|
|
"!" @operator
|
|
|
|
(identifier) @variable.other.member)
|
|
|
|
|
|
|
|
(field_definition
|
|
|
|
name: (identifier) @variable.other.member)
|
|
|
|
|
|
|
|
(named_node
|
2025-01-02 15:37:18 -05:00
|
|
|
name: (identifier) @tag)
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2025-01-02 15:37:18 -05:00
|
|
|
((predicate
|
|
|
|
"#" @function.builtin
|
|
|
|
name: (identifier) @function.builtin @_name
|
|
|
|
type: (predicate_type) @function.builtin)
|
|
|
|
(#any-of? @_name "eq" "match" "any-of" "not-any-of" "is" "is-not" "not-same-line" "not-kind-eq" "set" "select-adjacent" "strip"))
|
|
|
|
(predicate name: (identifier) @error)
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2025-01-02 15:37:18 -05:00
|
|
|
(capture) @label
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2021-11-02 23:00:52 -04:00
|
|
|
(escape_sequence) @constant.character.escape
|
2021-10-16 03:58:04 -05:00
|
|
|
|
2024-12-27 09:57:53 -05:00
|
|
|
(string) @string
|