1
0
dust/tree-sitter-dust/highlights.scm

73 lines
962 B
Scheme
Raw Normal View History

(statement) @statement
[
(expression)
(function_expression)
(index_expression)
] @expression
(value) @value
2023-12-30 07:04:39 +00:00
(identifier) @variable
(value) @value
(string) @string
2023-10-24 00:45:47 +00:00
[
(integer)
(float)
] @number
[
(command)
(function)
] @function
(range) @range
(boolean) @boolean
2023-10-24 00:45:47 +00:00
(list) @list
(map) @map
2023-10-24 00:45:47 +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
(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
[
"as"
2023-12-11 16:17:37 +00:00
"async"
"break"
2023-10-24 00:45:47 +00:00
"else"
2023-12-30 14:29:33 +00:00
"else if"
"enum"
2023-12-11 16:17:37 +00:00
"false"
2023-10-24 00:45:47 +00:00
"for"
2023-12-11 16:17:37 +00:00
"if"
2023-10-24 00:45:47 +00:00
"in"
"loop"
2023-12-11 16:17:37 +00:00
"match"
"return"
"struct"
2023-12-11 16:17:37 +00:00
"true"
"while"
"->"
":"
"::"
"^"
2023-10-24 00:45:47 +00:00
] @keyword
2023-12-30 07:04:39 +00:00
(function_call) @function.call