mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Lex whitespace in input-output types. (#12339)
# Description Fixes #12264. # User-Facing Changes Multiple input-output types can break across lines like command params. # Tests + Formatting ✅ E2E parser tests
This commit is contained in:
@ -3041,7 +3041,8 @@ pub fn parse_input_output_types(
|
||||
full_span.end -= 1;
|
||||
}
|
||||
|
||||
let (tokens, parse_error) = lex_signature(bytes, full_span.start, &[b','], &[], true);
|
||||
let (tokens, parse_error) =
|
||||
lex_signature(bytes, full_span.start, &[b'\n', b'\r', b','], &[], true);
|
||||
|
||||
if let Some(parse_error) = parse_error {
|
||||
working_set.parse_errors.push(parse_error);
|
||||
|
Reference in New Issue
Block a user