Decodal/editors/tree-sitter-decodal/queries/highlights.scm

59 lines
707 B
Scheme

(comment) @comment
(string) @string
(regex_literal) @string.regexp
(integer) @number
(float) @number
(boolean) @boolean
[
"let"
"in"
"match"
"import"
"default"
] @keyword
[
"&"
"//"
"=>"
"="
">"
">="
"<"
"<="
] @operator
[
"{"
"}"
"["
"]"
"("
")"
] @punctuation.bracket
[
";"
","
"."
":"
] @punctuation.delimiter
((identifier) @type.builtin
(#match? @type.builtin "^(String|Int|Float|Bool)$"))
(field_definition
path: (field_path (identifier) @property))
(path_expression
field: (identifier) @property)
(parameter
name: (identifier) @variable.parameter)
(function_expression) @function
(call_expression
function: (identifier) @function.call)