File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change 111
111
; -------
112
112
113
113
(for_expression
114
- " for" @keyword.control)
114
+ " for" @keyword.control.repeat )
115
115
((identifier) @keyword.control
116
116
(#match? @keyword.control " ^yield$" ))
117
+
118
+ " in" @keyword.control
119
+
120
+ [
121
+ " match"
122
+ " if"
123
+ " else"
124
+ ] @keyword.control.conditional
125
+
117
126
[
118
127
" while"
119
128
" loop"
120
- " in"
129
+ ] @keyword.control.repeat
130
+
131
+ [
121
132
" break"
122
133
" continue"
123
134
124
- " match"
125
- " if"
126
- " else"
127
135
" return"
128
136
129
137
" await"
130
- ] @keyword.control
138
+ ] @keyword.control.return
131
139
132
140
" use" @keyword.control.import
133
141
(mod_item " mod" @keyword.control.import !body)
143
151
" mod"
144
152
" extern"
145
153
146
- " struct"
147
- " enum"
148
154
" impl"
149
155
" where"
150
156
" trait"
151
157
" for"
152
158
153
- " type"
154
- " union"
155
159
" unsafe"
156
160
" default"
157
161
" macro_rules!"
158
162
159
- " let"
160
-
161
163
" async"
162
164
] @keyword
163
165
166
+ [
167
+ " struct"
168
+ " enum"
169
+ " union"
170
+
171
+ " type"
172
+ ] @keyword.storage.type
173
+
174
+ " let" @keyword.storage
175
+
164
176
" fn" @keyword.function
165
177
166
178
(mutable_specifier) @keyword.storage.modifier.mut
You can’t perform that action at this time.
0 commit comments