tree-sitter description

This commit is contained in:
2026-07-13 17:21:36 +02:00
parent 5a958d9bfd
commit 9e75549d02
16 changed files with 150342 additions and 0 deletions
+110
View File
@@ -0,0 +1,110 @@
(comment) @comment
[
(string)
(multiline_string)
] @string
(character) @string
(escape_sequence) @escape
[
(integer)
(float)
] @number
(boolean) @constant.builtin
[
(none)
(undefined)
] @constant.builtin
(builtin_type) @type.builtin
(named_type) @type
(type_declaration name: (identifier) @type)
(function_declaration name: (identifier) @function)
(parameter name: (identifier) @variable.parameter)
(call_expression function: (expression (identifier) @function))
(call_expression function: (expression (field_expression field: (identifier) @function)))
(field_expression field: (identifier) @property)
(field_initializer name: (identifier) @property)
(keyed_field_initializer name: (identifier) @property)
(record_field name: (identifier) @property)
(enum_member name: (identifier) @property)
(enum_literal name: (identifier) @property)
(import_declaration alias: (identifier) @module)
(opaque_type) @keyword
[
"func"
"c_func"
"struct"
"c_struct"
"union"
"enum"
"distinct"
"alias"
"import"
"return"
"try"
"catch"
"mut"
"orelse"
"and"
"or"
"if"
"while"
"for"
"break"
"continue"
"defer"
"yield"
"match"
"else"
] @keyword
[
"::"
"="
"+="
"-="
"*="
"/="
"=="
"!="
"<"
"<="
">"
">="
"+"
"-"
"*"
"/"
"!"
"&"
"?"
"^"
".."
"..="
"|"
] @operator
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
[
","
"."
":"
";"
] @punctuation.delimiter