File tree 1 file changed +29
-0
lines changed 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 222
222
.
223
223
)
224
224
) @anonymousFunction @namedFunction
225
+
226
+ (
227
+ [
228
+ (default_case)
229
+ (expression_case)
230
+ (type_case)
231
+ ] @branch
232
+
233
+ ; ; TODO: insertion delimiters snafu
234
+
235
+ ; ; The following is almost right, for drink and pour,
236
+ ; ; although it would be best if the cursor was just before the colon.
237
+ ; ; It also has some leading whitespace problems.
238
+ ; ;
239
+ (#insertion-delimiter! @branch " case :\n\n " )
240
+
241
+ ; ; This one is right for clone.
242
+ ; ; (#insertion-delimiter! @branch "")
243
+ )
244
+
245
+ [
246
+ (type_switch_statement)
247
+ (expression_switch_statement)
248
+ ] @branch.iteration
249
+
250
+ ; ; TODO: if-then-else branches? They're rare in Go.
251
+ ; ; TODO: in `case x, y, z:`, should x/y/z be values? names?
252
+ ; ; what about type switch cases: should they be types?
253
+ ; ; TODO: teach condition about switch statement conditions
You can’t perform that action at this time.
0 commit comments