We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a12cc commit 4b978ecCopy full SHA for 4b978ec
languages/nu.scm
@@ -296,6 +296,8 @@
296
)
297
298
(val_list
299
+ entry: _
300
+ .
301
rest: _ @prepend_spaced_softline
302
303
test/expected_ctrl.nu
@@ -27,6 +27,7 @@ match $foo {
27
{$bar $baz} => $baz
28
# ..rest pattern
29
[$x ..$y] if $x == 1 => { 'good list' }
30
+ [..$y] => { $y }
31
}
32
match $foo { null => { return "default" } $val => $val }
33
# while
test/input_ctrl.nu
{ $bar $baz} => $baz
[ $x ..$y ] if $x == 1 => { 'good list' }
+ [ ..$y] => { $y }
match $foo {null => {return "default"} $val => $val}
0 commit comments