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:
Texas Toland
2024-04-10 09:28:54 -05:00
committed by GitHub
parent 18ddf95d44
commit 83674909f1
2 changed files with 34 additions and 4 deletions

View File

@ -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);