mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Flesh out expr_lift_spaces, in particular handling DbgStmt properly
This commit is contained in:
parent
5c387857ff
commit
fc74b67d86
5 changed files with 136 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
dbg g
|
||||
L #
|
|
@ -0,0 +1,31 @@
|
|||
SpaceAfter(
|
||||
DbgStmt {
|
||||
first: @4-5 Var {
|
||||
module_name: "",
|
||||
ident: "g",
|
||||
},
|
||||
extra_args: [],
|
||||
continuation: @6-12 SpaceBefore(
|
||||
ParensAround(
|
||||
ParensAround(
|
||||
SpaceAfter(
|
||||
Tag(
|
||||
"L",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
},
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
dbg g
|
||||
((L
|
||||
))#
|
|
@ -368,6 +368,7 @@ mod test_snapshots {
|
|||
pass/dbg_stmt_in_parens.expr,
|
||||
pass/dbg_stmt_multiline.expr,
|
||||
pass/dbg_stmt_two_exprs.expr,
|
||||
pass/dbg_then_double_parens_cont.expr,
|
||||
pass/def_bang.expr,
|
||||
pass/def_multistring_apply.expr,
|
||||
pass/defs_suffixed_middle_extra_indents.moduledefs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue