on master help sign in
Improve rust indentation queries

if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far.

commitf24007b30f9655b2d5e74ccf8164fafed8b54d77 authorBlaž Hrastnik <blaz@mxxn.io> dateSat 24 Jul 2021, 15:31 (5 years ago) parent112ae5c
1 file changed+2−7
runtime/queries/rust/indents.toml+2−7
runtime/queries/rust/indents.toml+2−7
@@ -1,11 +1,4 @@
11indent = [
2− "while_expression",
3− "for_expression",
4− "loop_expression",
5− "if_expression",
6− "if_let_expression",
7− "tuple_expression",
8− "array_expression",
92 "use_list",
103 "block",
114 "match_block",
@@ -19,6 +12,8 @@ indent = [
1912 "enum_variant_list",
2013 "binary_expression",
2114 "field_expression",
15+ "tuple_expression",
16+ "array_expression",
2217 "where_clause",
2318 "macro_invocation"
2419]