mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
lift spaces in backpassing (fixes #7364)
This commit is contained in:
parent
db95ff54cf
commit
abde9e86b1
5 changed files with 65 additions and 2 deletions
|
|
@ -0,0 +1,5 @@
|
|||
1,
|
||||
(C #
|
||||
0) #
|
||||
<- F
|
||||
t
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
@0-16 SpaceAfter(
|
||||
Backpassing(
|
||||
[
|
||||
@0-1 NumLiteral(
|
||||
"1",
|
||||
),
|
||||
@2-7 SpaceAfter(
|
||||
Apply(
|
||||
@2-3 Tag(
|
||||
"C",
|
||||
),
|
||||
[
|
||||
@6-7 SpaceBefore(
|
||||
SpaceAfter(
|
||||
NumLiteral(
|
||||
"0",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
@13-14 Tag(
|
||||
"F",
|
||||
),
|
||||
@15-16 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "t",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
1,C(#
|
||||
0
|
||||
)#
|
||||
<-F
|
||||
t
|
||||
|
|
@ -317,6 +317,7 @@ mod test_snapshots {
|
|||
pass/apply_unary_not.expr,
|
||||
pass/arg_pattern_as.expr,
|
||||
pass/backpassing_bananza.expr,
|
||||
pass/backpassing_comment_pattern_fun.expr,
|
||||
pass/backpassing_in_parens_in_tuple.expr,
|
||||
pass/bang_newline_double_accessor.expr,
|
||||
pass/bangs_and_tuple_accessors.expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue