Daniel Martí e7f25d88ca
Avoid extra indentation on Go switches (#6817)
Unlike other languages, in Go, switches themselves are not indented;
it's just each case body which is indented by one level:

   switch foo {
   case "bar":
      baz()
   }

As such, we shouldn't `@indent` for type_switch_statement nor
expression_switch_statement, as otherwise inserted lines show up as:

   switch foo {
      // inserted with "o"
   case "bar":
         // inserted with "o"
      baz()
   }

With the fix, the inserted lines are indented properly:

   switch foo {
   // inserted with "o"
   case "bar":
      // inserted with "o"
      baz()
   }

I also verified that indentation on selects similarly works well.

Thanks to Triton171 for helping with this fix.
2023-04-25 18:05:23 -05:00
..
2022-08-24 16:14:56 -05:00
2022-12-14 08:42:11 -06:00
2022-08-08 17:59:55 -05:00
2022-11-14 19:43:22 -06:00
2022-10-17 10:35:15 +09:00
2022-11-18 14:13:13 -06:00
2022-07-31 07:04:57 -05:00
2022-11-01 19:44:56 -05:00
2022-08-23 21:35:57 -05:00
2022-09-06 12:02:37 +09:00
2021-12-21 18:22:15 +09:00
2022-07-30 12:34:00 -05:00
2023-04-12 15:28:51 -05:00
2022-04-13 14:28:51 +09:00
2022-07-03 16:19:12 -05:00
2023-03-14 10:56:49 +09:00
2022-08-24 09:51:10 -05:00
2022-07-10 11:27:44 -05:00
2023-04-09 14:23:01 -05:00
2022-07-12 10:13:57 -05:00
2022-01-21 23:16:40 +09:00
2022-08-31 17:45:23 +09:00
2022-11-24 11:07:05 +09:00
2023-02-10 11:32:04 -06:00
2023-04-07 00:26:41 +08:00
2022-01-25 15:50:34 +09:00
2022-03-31 00:08:07 +09:00
2022-09-08 09:04:18 -05:00
2022-10-29 10:33:23 -05:00
2022-07-05 21:49:54 -05:00
2022-07-05 21:49:54 -05:00
2022-03-31 00:08:07 +09:00
2022-03-31 00:08:07 +09:00
2022-03-31 00:08:07 +09:00
2023-03-17 09:48:57 -05:00
2023-02-25 12:53:37 -06:00
2023-03-26 17:06:48 -05:00
2023-03-14 10:56:49 +09:00
2022-03-31 00:08:07 +09:00
2022-06-06 12:26:56 -05:00
2022-08-25 17:59:02 -05:00
2023-02-10 11:12:46 -06:00
2023-02-07 17:24:26 -06:00
2022-03-31 00:08:07 +09:00
2023-02-20 17:04:17 -06:00
2022-03-31 00:08:07 +09:00
2023-03-03 13:12:37 -06:00
2022-11-22 21:49:02 -06:00
2022-09-29 13:11:45 -05:00
2022-08-14 08:35:15 -05:00
2022-04-05 07:39:22 -05:00
2023-04-07 00:37:45 +08:00
2023-01-23 12:10:27 -06:00
2022-12-12 17:50:12 +09:00
2022-08-08 17:57:08 -05:00
2023-03-21 17:12:24 -05:00
2022-06-28 08:48:38 +05:30
2022-08-31 17:45:23 +09:00
2022-08-17 10:40:21 +09:00
2022-03-31 00:08:07 +09:00
2022-07-05 21:49:54 -05:00
2023-03-25 12:10:54 -05:00
2022-10-28 08:22:41 -05:00
2022-10-31 18:48:01 -05:00
2022-08-23 20:52:01 -05:00
2022-10-29 15:41:28 -05:00
2022-03-31 00:08:07 +09:00