2023-03-03 06:27:30 -07:00
|
|
|
(string) @string
|
2024-01-17 08:55:52 -07:00
|
|
|
|
2023-03-03 06:27:30 -07:00
|
|
|
(escape_sequence) @string.escape
|
2024-01-17 08:55:52 -07:00
|
|
|
|
|
|
|
(capture
|
|
|
|
(identifier) @type)
|
|
|
|
|
|
|
|
(anonymous_node
|
|
|
|
(identifier) @string)
|
|
|
|
|
|
|
|
(predicate
|
|
|
|
name: (identifier) @function.call)
|
|
|
|
|
|
|
|
(named_node
|
|
|
|
name: (identifier) @variable)
|
|
|
|
|
|
|
|
(field_definition
|
|
|
|
name: (identifier) @property)
|
|
|
|
|
|
|
|
(negated_field
|
|
|
|
"!" @operator
|
|
|
|
(identifier) @property)
|
|
|
|
|
2023-03-03 06:27:30 -07:00
|
|
|
(comment) @comment @spell
|
|
|
|
|
|
|
|
(quantifier) @operator
|
2024-01-17 08:55:52 -07:00
|
|
|
|
2023-03-03 06:27:30 -07:00
|
|
|
(predicate_type) @punctuation.special
|
|
|
|
|
|
|
|
"." @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"["
|
|
|
|
"]"
|
|
|
|
"("
|
|
|
|
")"
|
|
|
|
] @punctuation.bracket
|
|
|
|
|
|
|
|
":" @punctuation.delimiter
|
2024-01-17 08:55:52 -07:00
|
|
|
|
|
|
|
[
|
|
|
|
"@"
|
|
|
|
"#"
|
|
|
|
] @punctuation.special
|
|
|
|
|
2023-03-03 06:27:30 -07:00
|
|
|
"_" @constant
|
|
|
|
|
2024-01-17 08:55:52 -07:00
|
|
|
((parameters
|
|
|
|
(identifier) @number)
|
|
|
|
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
|
|
|
|
|
|
|
|
((program
|
|
|
|
.
|
|
|
|
(comment)*
|
|
|
|
.
|
|
|
|
(comment) @keyword.import)
|
|
|
|
(#lua-match? @keyword.import "^;+ *inherits *:"))
|
|
|
|
|
|
|
|
((program
|
|
|
|
.
|
|
|
|
(comment)*
|
|
|
|
.
|
|
|
|
(comment) @keyword.directive)
|
|
|
|
(#lua-match? @keyword.directive "^;+ *extends *$"))
|
|
|
|
|
|
|
|
((comment) @keyword.directive
|
|
|
|
(#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$"))
|
2023-03-03 06:27:30 -07:00
|
|
|
|
2024-01-17 08:55:52 -07:00
|
|
|
((predicate
|
|
|
|
name: (identifier) @_name
|
2024-04-05 09:06:24 -07:00
|
|
|
parameters: (parameters
|
|
|
|
(string
|
|
|
|
"\"" @string
|
|
|
|
"\"" @string) @string.regexp))
|
2024-01-17 08:55:52 -07:00
|
|
|
(#any-of? @_name "match" "not-match" "vim-match" "not-vim-match" "lua-match" "not-lua-match"))
|
2023-03-03 06:27:30 -07:00
|
|
|
|
2024-01-17 08:55:52 -07:00
|
|
|
((predicate
|
|
|
|
name: (identifier) @_name
|
2024-04-05 09:06:24 -07:00
|
|
|
parameters: (parameters
|
|
|
|
(string
|
|
|
|
"\"" @string
|
|
|
|
"\"" @string) @string.regexp
|
|
|
|
.
|
|
|
|
(string) .))
|
2024-01-17 08:55:52 -07:00
|
|
|
(#any-of? @_name "gsub" "not-gsub"))
|