File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 295295 entry: _ @prepend_spaced_softline
296296)
297297
298+ (val_list
299+ rest: _ @prepend_spaced_softline
300+ )
301+
298302(val_table
299303 row: _ @prepend_spaced_softline
300304)
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ match $foo {
2525 [a b c ] => 0
2626 a | b | c => 42
2727 {$bar $baz } => $baz
28+ # ..rest pattern
29+ [$x .. $y ] if $x == 1 => { ' good list' }
2830}
2931match $foo { null => { return " default" } $val => $val }
3032# while
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ match $foo {
2525 [ a b c ] => 0
2626 a | b | c => 42
2727 { $bar $baz } => $baz
28+ # ..rest pattern
29+ [ $x .. $y ] if $x == 1 => { ' good list' }
2830}
2931match $foo {null => {return " default" } $val => $val }
3032# while
You can’t perform that action at this time.
0 commit comments