Fix comments in str interpolations

This commit is contained in:
Joshua Warner 2024-12-16 17:23:48 -08:00
parent e760db55f5
commit 887a43ff55
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 40 additions and 4 deletions

View file

@ -0,0 +1,25 @@
@0-10 SpaceAfter(
Str(
Line(
[
Interpolated(
@3-8 ParensAround(
SpaceAfter(
Tag(
"S",
),
[
LineComment(
"",
),
],
),
),
),
],
),
),
[
Newline,
],
)

View file

@ -584,6 +584,7 @@ mod test_snapshots {
pass/paren_newline_before_return.expr,
pass/parens_apply_newline.expr,
pass/parens_apply_not_parens.expr,
pass/parens_comment_in_str_interpolation.expr,
pass/parens_comment_in_ty_annotation.expr,
pass/parens_comment_tuple.expr,
pass/parens_empty_record_apply.expr,