File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 232232 scrutinee: _? @append_space
233233 (match_arm)? @prepend_spaced_softline
234234 (default_arm)? @prepend_spaced_softline
235+ "}"? @prepend_spaced_softline
235236)
236237
237238(match_pattern "|" @prepend_spaced_softline @append_space )
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ match $foo {
2525 [a b c ] => 0
2626 a | b | c => 42
2727}
28+ match $foo { null => { return " default" } $val => $val }
2829# while
2930mut x = 0 ; while $x < 10 { $x = $x + 1 }; $x # while comment
3031# loop
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ match $foo {
2525 [ a b c ] => 0
2626 a | b | c => 42
2727}
28+ match $foo {null => {return " default" } $val => $val }
2829# while
2930mut x = 0 ; while $x < 10 { $x = $x + 1 }; $x # while comment
3031# loop
You can’t perform that action at this time.
0 commit comments