Relax argument indentation requirements in closures

This commit is contained in:
Joshua Warner 2025-01-13 21:34:06 -08:00
parent ede015517a
commit 51f2cdccf7
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
7 changed files with 70 additions and 21 deletions

View file

@ -1 +1 @@
Expr(Closure(IndentArrow(@10), @4), @0)
Expr(Closure(Arrow(@11), @4), @0)

View file

@ -0,0 +1,41 @@
@0-14 SpaceAfter(
Apply(
@0-6 RecordUpdate {
update: @3-4 SpaceBefore(
Var {
module_name: "",
ident: "h",
},
[
LineComment(
"",
),
],
),
fields: [],
},
[
@6-14 Closure(
[
@10-11 SpaceBefore(
Identifier {
ident: "i",
},
[
LineComment(
"",
),
],
),
],
@13-14 Num(
"0",
),
),
],
Space,
),
[
Newline,
],
)

View file

@ -672,6 +672,7 @@ mod test_snapshots {
pass/record_literal_field_bang.expr,
pass/record_type_with_function.expr,
pass/record_update.expr,
pass/record_update_apply_closure_comments.expr,
pass/record_update_comment_before_ampersand.expr,
pass/record_updater_closure_weirdness.expr,
pass/record_updater_literal_apply.expr,