2024-02-19 19:49:12 +00:00
|
|
|
(statement) @statement
|
|
|
|
[
|
|
|
|
(expression)
|
|
|
|
(function_expression)
|
|
|
|
(index_expression)
|
|
|
|
] @expression
|
2023-10-18 21:52:56 +00:00
|
|
|
(value) @value
|
2023-12-30 07:04:39 +00:00
|
|
|
(identifier) @variable
|
2024-02-19 19:49:12 +00:00
|
|
|
|
2023-10-18 21:52:56 +00:00
|
|
|
(value) @value
|
|
|
|
(string) @string
|
2023-10-24 00:45:47 +00:00
|
|
|
[
|
|
|
|
(integer)
|
|
|
|
(float)
|
|
|
|
] @number
|
2024-02-19 19:49:12 +00:00
|
|
|
[
|
|
|
|
(command)
|
|
|
|
(function)
|
|
|
|
] @function
|
|
|
|
(range) @range
|
2023-10-18 21:52:56 +00:00
|
|
|
(boolean) @boolean
|
2023-10-24 00:45:47 +00:00
|
|
|
(list) @list
|
2024-02-19 19:49:12 +00:00
|
|
|
(map) @map
|
2023-10-24 00:45:47 +00:00
|
|
|
|
2024-02-19 19:49:12 +00:00
|
|
|
(struct_definition) @struct
|
|
|
|
(enum_definition) @enum
|
|
|
|
|
|
|
|
(block) @block
|
|
|
|
|
|
|
|
["," ";"] @punctuation.delimiter
|
2023-10-24 00:45:47 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
"["
|
|
|
|
"]"
|
|
|
|
"{"
|
|
|
|
"}"
|
|
|
|
"<"
|
|
|
|
">"
|
2023-12-11 16:17:37 +00:00
|
|
|
"("
|
|
|
|
")"
|
2023-10-24 00:45:47 +00:00
|
|
|
] @punctuation.bracket
|
|
|
|
|
2024-02-19 19:49:12 +00:00
|
|
|
(type) @type
|
2023-12-30 07:04:39 +00:00
|
|
|
|
|
|
|
(assignment_operator) @operator.assignment
|
|
|
|
(logic_operator) @operator.logic
|
|
|
|
(math_operator) @operator.math
|
2023-10-24 00:45:47 +00:00
|
|
|
|
2024-02-19 20:24:44 +00:00
|
|
|
|
|
|
|
"as" @keyword
|
|
|
|
"async" @keyword
|
|
|
|
"break" @keyword
|
|
|
|
"else" @keyword
|
|
|
|
"else if" @keyword
|
|
|
|
"enum" @keyword
|
|
|
|
"false" @keyword
|
|
|
|
"for" @keyword
|
|
|
|
"if" @keyword
|
|
|
|
"in" @keyword
|
|
|
|
"match" @keyword
|
|
|
|
"return" @keyword
|
|
|
|
"struct" @keyword
|
|
|
|
"true" @keyword
|
|
|
|
"while" @keyword
|
|
|
|
"->" @keyword
|
|
|
|
":" @keyword
|
|
|
|
"::" @keyword
|
|
|
|
"^" @keyword
|
|
|
|
"loop" @keyword
|
2023-10-24 00:45:47 +00:00
|
|
|
|
2023-12-30 07:04:39 +00:00
|
|
|
(function_call) @function.call
|