Add reduce command (#700)

* Add reduce command

* Fix example and missing test commands

* Add forgotten file
This commit is contained in:
Jakub Žádník
2022-01-08 02:40:40 +02:00
committed by GitHub
parent f964ce9bc0
commit 3b467bedd9
5 changed files with 231 additions and 1 deletions

View File

@ -2815,6 +2815,7 @@ pub fn parse_block_expression(
let (output, err) = lite_parse(&output[amt_to_skip..]);
error = error.or(err);
// TODO: Finish this
if let SyntaxShape::Block(Some(v)) = shape {
if signature.is_none() && v.len() == 1 {
// We'll assume there's an `$it` present