mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 03:44:19 +01:00
Short redirection syntax (#8503)
This one's pretty clear from the diff! It's more of a language design discussion.
This commit is contained in:
parent
14bf0b000e
commit
77e9f8d7df
@ -247,21 +247,21 @@ pub fn lex_item(
|
|||||||
}
|
}
|
||||||
|
|
||||||
match &input[(span.start - span_offset)..(span.end - span_offset)] {
|
match &input[(span.start - span_offset)..(span.end - span_offset)] {
|
||||||
b"out>" => (
|
b"out>" | b"o>" => (
|
||||||
Token {
|
Token {
|
||||||
contents: TokenContents::OutGreaterThan,
|
contents: TokenContents::OutGreaterThan,
|
||||||
span,
|
span,
|
||||||
},
|
},
|
||||||
None,
|
None,
|
||||||
),
|
),
|
||||||
b"err>" => (
|
b"err>" | b"e>" => (
|
||||||
Token {
|
Token {
|
||||||
contents: TokenContents::ErrGreaterThan,
|
contents: TokenContents::ErrGreaterThan,
|
||||||
span,
|
span,
|
||||||
},
|
},
|
||||||
None,
|
None,
|
||||||
),
|
),
|
||||||
b"out+err>" | b"err+out>" => (
|
b"out+err>" | b"err+out>" | b"o+e>" | b"e+o>" => (
|
||||||
Token {
|
Token {
|
||||||
contents: TokenContents::OutErrGreaterThan,
|
contents: TokenContents::OutErrGreaterThan,
|
||||||
span,
|
span,
|
||||||
|
Loading…
Reference in New Issue
Block a user