summaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/indent.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs
index d0a0e414..23b21ed3 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -55,7 +55,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
"if_let_expression",
// "match_expression",
// "match_arm",
-
+ "tuple_expression",
+ "array_expression",
// indent_except_first_scopes
"use_list",
"block",
@@ -253,6 +254,15 @@ pub fn change<I>(document: &Document, changes: I) -> Self
where
I: IntoIterator<Item = Change> + ExactSizeIterator,
{
+ [
+ 1,
+ 2,
+ 3,
+ ];
+ (
+ 1,
+ 2
+ );
true
}
",