mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix else spacing
This commit is contained in:
parent
6b08f42d02
commit
1cc97fcfa7
5 changed files with 50 additions and 2 deletions
|
@ -0,0 +1 @@
|
|||
if "" then -p else if "" then -p else .e
|
|
@ -0,0 +1,43 @@
|
|||
@0-33 SpaceAfter(
|
||||
If {
|
||||
if_thens: [
|
||||
(
|
||||
@2-4 Str(
|
||||
PlainLine(
|
||||
"",
|
||||
),
|
||||
),
|
||||
@8-10 UnaryOp(
|
||||
@9-10 Var {
|
||||
module_name: "",
|
||||
ident: "p",
|
||||
},
|
||||
@8-9 Negate,
|
||||
),
|
||||
),
|
||||
(
|
||||
@18-20 Str(
|
||||
PlainLine(
|
||||
"",
|
||||
),
|
||||
),
|
||||
@24-26 UnaryOp(
|
||||
@25-26 Var {
|
||||
module_name: "",
|
||||
ident: "p",
|
||||
},
|
||||
@24-25 Negate,
|
||||
),
|
||||
),
|
||||
],
|
||||
final_else: @31-33 AccessorFunction(
|
||||
RecordField(
|
||||
"e",
|
||||
),
|
||||
),
|
||||
indented_else: false,
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
if""then-p else
|
||||
if""then-p else.e
|
|
@ -549,6 +549,7 @@ mod test_snapshots {
|
|||
pass/negative_single_quote.expr,
|
||||
pass/nested_def_annotation.moduledefs,
|
||||
pass/nested_if.expr,
|
||||
pass/nested_if_unindented.expr,
|
||||
pass/nested_list_comment_in_closure_arg.expr,
|
||||
pass/nested_parens_in_pattern.expr,
|
||||
pass/nested_when_comment_in_pat.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue