dust/tree-sitter-dust/highlights.scm
2023-12-30 02:04:39 -05:00

55 lines
715 B
Scheme

(expression) @expression
(value) @value
(identifier) @variable
(value) @value
(string) @string
[
(integer)
(float)
] @number
(function) @function
(boolean) @boolean
(list) @list
["," ":" ";"] @punctuation.delimiter
[
"["
"]"
"{"
"}"
"<"
">"
"("
")"
] @punctuation.bracket
[
(type)
(type_definition)
] @type
(assignment_operator) @operator.assignment
(logic_operator) @operator.logic
(math_operator) @operator.math
[
"async"
"else"
"false"
"for"
"if"
"in"
"match"
"true"
"while"
"->"
"=>"
] @keyword
(built_in_function) @function.builtin
(function_call) @function.call