Fix formatting of literals in closure args

This commit is contained in:
Joshua Warner 2024-12-15 12:28:56 -08:00
parent 61fb9e45fb
commit cc611533e0
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
7 changed files with 65 additions and 4 deletions

View file

@ -0,0 +1,17 @@
@0-7 SpaceAfter(
Closure(
[
@2-3 NumLiteral(
"8",
),
],
@6-7 Tag(
"T",
),
),
[
LineComment(
"",
),
],
)

View file

@ -344,6 +344,7 @@ mod test_snapshots {
pass/call_bang.expr,
pass/call_bang_no_space.expr,
pass/capture_body_parens_comment.expr,
pass/closure_arg_parens_then_comment.expr,
pass/closure_complex_pattern_indent_issue.expr,
pass/closure_in_apply_in_binop.expr,
pass/closure_in_binop_with_spaces.expr,