From f24007b30f9655b2d5e74ccf8164fafed8b54d77 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 24 Jul 2021 15:31:03 +0900 Subject: Improve rust indentation queries if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far. --- runtime/queries/rust/indents.toml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'runtime/queries/rust/indents.toml') diff --git a/runtime/queries/rust/indents.toml b/runtime/queries/rust/indents.toml index d0115cb5..6609a756 100644 --- a/runtime/queries/rust/indents.toml +++ b/runtime/queries/rust/indents.toml @@ -1,11 +1,4 @@ indent = [ - "while_expression", - "for_expression", - "loop_expression", - "if_expression", - "if_let_expression", - "tuple_expression", - "array_expression", "use_list", "block", "match_block", @@ -19,6 +12,8 @@ indent = [ "enum_variant_list", "binary_expression", "field_expression", + "tuple_expression", + "array_expression", "where_clause", "macro_invocation" ] -- cgit v1.2.3-70-g09d2 From 29cefa1be860e38a11347f0798159e0f4ddfe173 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 24 Jul 2021 15:33:55 +0900 Subject: rust: Indent multi line call expressions one level deeper --- runtime/queries/rust/indents.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/queries/rust/indents.toml') diff --git a/runtime/queries/rust/indents.toml b/runtime/queries/rust/indents.toml index 6609a756..3900f0b9 100644 --- a/runtime/queries/rust/indents.toml +++ b/runtime/queries/rust/indents.toml @@ -10,6 +10,7 @@ indent = [ "struct_pattern", "tuple_pattern", "enum_variant_list", + "call_expression", "binary_expression", "field_expression", "tuple_expression", -- cgit v1.2.3-70-g09d2