mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-10 10:35:16 +03:00
Improve rust indentation queries
if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far.
This commit is contained in:
parent
112ae5cffe
commit
f24007b30f
@ -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"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user