@akonwi/kit 0.11.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kit
CHANGED
|
Binary file
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
; Ard highlights (tree-sitter CLI)
|
|
2
|
+
|
|
3
|
+
; Keywords (node-based)
|
|
4
|
+
(break_statement) @keyword
|
|
5
|
+
(if_statement "if" @keyword)
|
|
6
|
+
(while_loop "while" @keyword)
|
|
7
|
+
(for_loop "for" @keyword)
|
|
8
|
+
(for_in_loop "for" @keyword)
|
|
9
|
+
(for_in_loop "in" @keyword)
|
|
10
|
+
(for_in_loop (for_binding) @variable.parameter)
|
|
11
|
+
(match_expression "match" @keyword)
|
|
12
|
+
(try_expression "try" @keyword)
|
|
13
|
+
(import_statement "use" @keyword)
|
|
14
|
+
(import_statement "as" @keyword)
|
|
15
|
+
(variable_declaration "let" @keyword)
|
|
16
|
+
(variable_declaration "mut" @keyword)
|
|
17
|
+
(mutable_type "mut" @keyword)
|
|
18
|
+
(function_declaration "test" @keyword)
|
|
19
|
+
(function_declaration "fn" @keyword)
|
|
20
|
+
(extern_function "extern" @keyword)
|
|
21
|
+
(extern_function "fn" @keyword)
|
|
22
|
+
(struct_declaration "struct" @keyword)
|
|
23
|
+
(enum_declaration "enum" @keyword)
|
|
24
|
+
(trait_declaration "trait" @keyword)
|
|
25
|
+
(impl_block "impl" @keyword)
|
|
26
|
+
(impl_block "for" @keyword)
|
|
27
|
+
(impl_block "as" @keyword)
|
|
28
|
+
|
|
29
|
+
; Types
|
|
30
|
+
(primitive_type) @type.builtin
|
|
31
|
+
(type_parameter) @type.parameter
|
|
32
|
+
(type_parameters "<" @punctuation.bracket ">" @punctuation.bracket)
|
|
33
|
+
(type_arguments "<" @punctuation.bracket ">" @punctuation.bracket)
|
|
34
|
+
(generic_type (qualified_identifier) @type)
|
|
35
|
+
(generic_type (identifier) @type)
|
|
36
|
+
(qualified_identifier) @type
|
|
37
|
+
|
|
38
|
+
; Declarations
|
|
39
|
+
(struct_declaration name: (identifier) @type)
|
|
40
|
+
(enum_declaration name: (identifier) @type)
|
|
41
|
+
(trait_declaration name: (identifier) @type.interface)
|
|
42
|
+
(function_declaration name: (identifier) @function.definition)
|
|
43
|
+
(function_declaration name: (qualified_identifier) @function.definition)
|
|
44
|
+
(extern_function name: (identifier) @function.definition)
|
|
45
|
+
(enum_variant name: (identifier) @constant)
|
|
46
|
+
|
|
47
|
+
; Parameters
|
|
48
|
+
(parameter name: (identifier) @variable.parameter)
|
|
49
|
+
(named_argument name: (identifier) @variable.parameter)
|
|
50
|
+
|
|
51
|
+
; Variables and properties
|
|
52
|
+
(variable_declaration name: (identifier) @variable)
|
|
53
|
+
(struct_field name: (identifier) @property)
|
|
54
|
+
(struct_literal_field name: (identifier) @property)
|
|
55
|
+
(self_expression) @variable.builtin
|
|
56
|
+
|
|
57
|
+
; Member/property vs call (disabled for now; was causing CLI query errors)
|
|
58
|
+
|
|
59
|
+
; Literals
|
|
60
|
+
(number) @number
|
|
61
|
+
(string) @string
|
|
62
|
+
(string_interpolation "{" @punctuation.bracket "}" @punctuation.bracket)
|
|
63
|
+
(string_content) @string
|
|
64
|
+
(escape_sequence) @string.escape
|
|
65
|
+
(boolean) @boolean
|
|
66
|
+
(void) @constant.builtin
|
|
67
|
+
(wildcard) @variable.special
|
|
68
|
+
|
|
69
|
+
; Comments
|
|
70
|
+
(comment) @comment
|
|
71
|
+
|
|
72
|
+
; Punctuation
|
|
73
|
+
[
|
|
74
|
+
"("
|
|
75
|
+
")"
|
|
76
|
+
"["
|
|
77
|
+
"]"
|
|
78
|
+
"{"
|
|
79
|
+
"}"
|
|
80
|
+
","
|
|
81
|
+
":"
|
|
82
|
+
] @punctuation.delimiter
|
|
83
|
+
|
|
84
|
+
[
|
|
85
|
+
"."
|
|
86
|
+
"::"
|
|
87
|
+
"=>"
|
|
88
|
+
"->"
|
|
89
|
+
] @punctuation.special
|
|
90
|
+
|
|
91
|
+
; Operators
|
|
92
|
+
[
|
|
93
|
+
"="
|
|
94
|
+
"=+"
|
|
95
|
+
"=-"
|
|
96
|
+
"+"
|
|
97
|
+
"-"
|
|
98
|
+
"*"
|
|
99
|
+
"/"
|
|
100
|
+
"%"
|
|
101
|
+
"<"
|
|
102
|
+
"<="
|
|
103
|
+
">"
|
|
104
|
+
">="
|
|
105
|
+
"=="
|
|
106
|
+
"!"
|
|
107
|
+
"?"
|
|
108
|
+
".."
|
|
109
|
+
] @operator
|
|
Binary file
|