on master help sign in
Indent array and tuple lists too.
commit5954dafdbc8213ff7a84349418d15d293fcdcd4c authorBlaž Hrastnik <blaz@mxxn.io> dateSun 9 May 2021, 19:02 (5 years ago) parentccdebb9
1 file changed+11−1
helix-core/src/indent.rs+11−1
helix-core/src/indent.rs+11−1
@@ -55,7 +55,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
5555 "if_let_expression",
5656 // "match_expression",
5757 // "match_arm",
58−
58+ "tuple_expression",
59+ "array_expression",
5960 // indent_except_first_scopes
6061 "use_list",
6162 "block",
@@ -253,6 +254,15 @@ pub fn change<I>(document: &Document, changes: I) -> Self
253254where
254255 I: IntoIterator<Item = Change> + ExactSizeIterator,
255256{
257+ [
258+ 1,
259+ 2,
260+ 3,
261+ ];
262+ (
263+ 1,
264+ 2
265+ );
256266 true
257267}
258268",