mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-25 21:37:48 +00:00
Indent for multiline | patterns
This commit is contained in:
parent
872efa9724
commit
244a501433
3 changed files with 21 additions and 17 deletions
|
|
@ -3379,7 +3379,7 @@ mod test_fmt {
|
|||
r#"
|
||||
when 0 is
|
||||
1 # comment
|
||||
| 2 -> "a"
|
||||
| 2 -> "a"
|
||||
_ -> "b"
|
||||
"#
|
||||
));
|
||||
|
|
@ -3477,18 +3477,18 @@ mod test_fmt {
|
|||
r#"
|
||||
when b is
|
||||
1
|
||||
| 2
|
||||
| 3 ->
|
||||
| 2
|
||||
| 3 ->
|
||||
4
|
||||
5 | 6 | 7 ->
|
||||
8
|
||||
9
|
||||
| 10 -> 11
|
||||
| 10 -> 11
|
||||
12 | 13 ->
|
||||
when c is
|
||||
14 | 15 -> 16
|
||||
17
|
||||
| 18 -> 19
|
||||
| 18 -> 19
|
||||
20 -> 21
|
||||
"#
|
||||
),
|
||||
|
|
@ -3510,7 +3510,7 @@ mod test_fmt {
|
|||
when b is
|
||||
3 -> 4
|
||||
9
|
||||
| 8 -> 9
|
||||
| 8 -> 9
|
||||
"#
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue