Fix expr_lift_spaces of Closure

This commit is contained in:
Joshua Warner 2024-12-02 18:24:54 -08:00
parent 19f8cc532a
commit cae47cf2a6
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 49 additions and 6 deletions

View file

@ -0,0 +1,25 @@
SpaceAfter(
Closure(
[
@1-2 Tag(
"L",
),
],
@4-10 ParensAround(
SpaceAfter(
Tag(
"E",
),
[
Newline,
LineComment(
"",
),
],
),
),
),
[
Newline,
],
)

View file

@ -328,6 +328,7 @@ mod test_snapshots {
pass/body_with_unneeded_parens.expr,
pass/call_bang.expr,
pass/call_bang_no_space.expr,
pass/capture_body_parens_comment.expr,
pass/closure_in_apply_in_binop.expr,
pass/closure_in_binop_with_spaces.expr,
pass/closure_pat_reccord_comment.expr,