on master help sign in
Indent array and tuple lists too.
5954dafBlaž Hrastnik
helix-core/src/indent.rs+11−1
@@ -55,7 +55,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
55 "if_let_expression",
55 "if_let_expression",
56 // "match_expression",
56 // "match_expression",
57 // "match_arm",
57 // "match_arm",
58−
58+ "tuple_expression",
59+ "array_expression",
59 // indent_except_first_scopes
60 // indent_except_first_scopes
60 "use_list",
61 "use_list",
61 "block",
62 "block",
@@ -253,6 +254,15 @@ pub fn change<I>(document: &Document, changes: I) -> Self
253where
254where
254 I: IntoIterator<Item = Change> + ExactSizeIterator,
255 I: IntoIterator<Item = Change> + ExactSizeIterator,
255{
256{
257+ [
258+ 1,
259+ 2,
260+ 3,
261+ ];
262+ (
263+ 1,
264+ 2
265+ );
256 true
266 true
257}
267}
258",
268",