mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Fix comments in str interpolations
This commit is contained in:
parent
e760db55f5
commit
887a43ff55
6 changed files with 40 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
"$(S #
|
||||
)"
|
|
@ -0,0 +1,25 @@
|
|||
@0-10 SpaceAfter(
|
||||
Str(
|
||||
Line(
|
||||
[
|
||||
Interpolated(
|
||||
@3-8 ParensAround(
|
||||
SpaceAfter(
|
||||
Tag(
|
||||
"S",
|
||||
),
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
"$((S#
|
||||
))"
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue