nushell/crates/nu-parser/src
Radek Vít 599bb9797d
Implement exclusive and inclusive ranges with ..< and .. (#2541)
* Implement exclusive and inclusive ranges with .. and ..=

This commit adds right-exclusive ranges.

The original a..b inclusive syntax was changed to reflect the Rust notation.
New a..=b syntax was introduced to have the old behavior.

Currently, both a.. and b..= is valid, and it is unclear whether it's valid
to impose restrictions.

The original issue suggests .. for inclusive and ..< for exclusive ranges,
this can be implemented by making simple changes to this commit.

* Fix collect tests by changing ranges to ..=

* Fix clippy lints in exclusive range matching

* Implement exclusive ranges using `..<`
2020-09-14 09:53:08 +12:00
..
errors.rs Add method to convert ClassifiedBlock into completion locations. (#2316) 2020-08-21 15:37:51 -04:00
lib.rs Return incomplete parse from lite_parse (#2284) 2020-08-02 06:39:55 +12:00
lite_parse.rs Add spans to pipelines. 2020-08-28 05:17:58 -05:00
parse.rs Implement exclusive and inclusive ranges with ..< and .. (#2541) 2020-09-14 09:53:08 +12:00
path.rs Support completion for paths with multiple dots (#1640) 2020-04-23 16:17:38 +12:00
shapes.rs Implement exclusive and inclusive ranges with ..< and .. (#2541) 2020-09-14 09:53:08 +12:00
signature.rs Pipeline blocks (#1579) 2020-04-13 19:59:57 +12:00