aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-14 08:14:13 +0000
committerBlaž Hrastnik2021-04-14 08:14:13 +0000
commit5edb3742377a680d0b01a56fd706a26954d86fd5 (patch)
treebad4a54de88cfcf4fda7ef79814dbd9fec4a8643
parent3e5f24a9d5cec26697a75e515bff46de418b32da (diff)
And some more indent patterns.
-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 a188af4b..d0a0e414 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -65,6 +65,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
"declaration_list",
"field_declaration_list",
"field_initializer_list",
+ "struct_pattern",
+ "tuple_pattern",
"enum_variant_list",
// "function_item",
// "closure_expression",