summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-07-24 06:31:03 +0000
committerBlaž Hrastnik2021-07-26 02:19:33 +0000
commitf24007b30f9655b2d5e74ccf8164fafed8b54d77 (patch)
treea827999b97bae26acc359b42447fe0db08bcf2c3 /runtime
parent112ae5cffe8cc645623cd2cb04cbee2e69c37a09 (diff)
Improve rust indentation queries
if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/rust/indents.toml9
1 files changed, 2 insertions, 7 deletions
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"
]