2020-07-28 07:39:45 -05:00
|
|
|
(string) @string
|
2021-01-01 23:14:11 -05:00
|
|
|
(escape_sequence) @string.escape
|
2021-07-13 09:09:12 -05:00
|
|
|
(capture (identifier) @type)
|
|
|
|
|
(anonymous_node (identifier) @string)
|
2021-07-01 14:43:09 -06:00
|
|
|
(predicate name: (identifier) @function)
|
2021-07-13 09:09:12 -05:00
|
|
|
(named_node name: (identifier) @variable)
|
|
|
|
|
(field_definition name: (identifier) @property)
|
2021-12-23 16:49:38 -05:00
|
|
|
(negated_field "!" @operator (identifier) @property)
|
2022-09-26 10:19:02 +01:00
|
|
|
(comment) @comment @spell
|
2020-09-04 13:09:28 -05:00
|
|
|
|
|
|
|
|
(quantifier) @operator
|
|
|
|
|
(predicate_type) @punctuation.special
|
|
|
|
|
|
2021-04-10 15:18:44 -05:00
|
|
|
"." @operator
|
|
|
|
|
|
2020-09-04 13:09:28 -05:00
|
|
|
[
|
|
|
|
|
"["
|
|
|
|
|
"]"
|
|
|
|
|
"("
|
|
|
|
|
")"
|
|
|
|
|
] @punctuation.bracket
|
2021-02-12 01:12:55 -05:00
|
|
|
|
2021-04-10 15:18:44 -05:00
|
|
|
":" @punctuation.delimiter
|
2021-12-23 16:49:38 -05:00
|
|
|
["@" "#"] @punctuation.special
|
2021-07-13 09:09:12 -05:00
|
|
|
"_" @constant
|
2021-04-10 15:18:44 -05:00
|
|
|
|
2021-08-13 18:15:18 -05:00
|
|
|
((parameters (identifier) @number)
|
|
|
|
|
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
|
|
|
|
|
|
2023-05-18 11:30:10 -04:00
|
|
|
((program . (comment)* . (comment) @include)
|
2023-05-21 11:48:08 +02:00
|
|
|
(#lua-match? @include "^;+ *inherits *:"))
|
2022-09-18 20:15:23 +03:00
|
|
|
|
2023-05-18 11:30:10 -04:00
|
|
|
((program . (comment)* . (comment) @preproc)
|
2023-05-21 11:48:08 +02:00
|
|
|
(#lua-match? @preproc "^;+ *extends"))
|