dust/tree-sitter-dust/highlights.scm

56 lines
671 B
Scheme
Raw Normal View History

(expression) @expression
(value) @value
2023-10-24 00:45:47 +00:00
(identifier) @identifier
(value) @value
(string) @string
2023-10-24 00:45:47 +00:00
[
(integer)
(float)
] @number
(function) @function
(boolean) @boolean
2023-10-24 00:45:47 +00:00
(list) @list
"," @punctuation.delimiter
[
"["
"]"
"{"
"}"
"<"
">"
2023-12-11 16:17:37 +00:00
"("
")"
2023-10-24 00:45:47 +00:00
] @punctuation.bracket
[
(assignment_operator)
(logic_operator)
(math_operator)
] @operator
[
2023-12-11 16:17:37 +00:00
"any"
"async"
2023-10-24 00:45:47 +00:00
"else"
2023-12-11 16:17:37 +00:00
"false"
"float"
"fn"
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"
2023-12-11 16:17:37 +00:00
"int"
"map"
"match"
"num"
"str"
"true"
"while"
2023-10-24 00:45:47 +00:00
] @keyword
2023-12-11 16:17:37 +00:00
(built_in_function) @function.builtin