mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +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)] {
|
||||
b"out>" => (
|
||||
b"out>" | b"o>" => (
|
||||
Token {
|
||||
contents: TokenContents::OutGreaterThan,
|
||||
span,
|
||||
},
|
||||
None,
|
||||
),
|
||||
b"err>" => (
|
||||
b"err>" | b"e>" => (
|
||||
Token {
|
||||
contents: TokenContents::ErrGreaterThan,
|
||||
span,
|
||||
},
|
||||
None,
|
||||
),
|
||||
b"out+err>" | b"err+out>" => (
|
||||
b"out+err>" | b"err+out>" | b"o+e>" | b"e+o>" => (
|
||||
Token {
|
||||
contents: TokenContents::OutErrGreaterThan,
|
||||
span,
|
||||
|
Loading…
Reference in New Issue
Block a user