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') 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