aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-14 06:20:39 +0000
committerBlaž Hrastnik2021-04-14 06:39:31 +0000
commit9e6c8c2a5a8b2a48543ee856fa801b2f30f113e1 (patch)
tree45314c14b6bc392d6b782bec3bb1a8460bb66a72
parent9445b24b883b9b78d2f0f2ba1e2151e92ac787f5 (diff)
Rust: add a few more scopes to indent.
-rw-r--r--helix-core/src/indent.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs
index 4ea920cc..a188af4b 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -61,8 +61,10 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
"block",
"match_block",
"arguments",
+ "parameters",
"declaration_list",
"field_declaration_list",
+ "field_initializer_list",
"enum_variant_list",
// "function_item",
// "closure_expression",