From d89ad4fafd1c7bc458931d51ba7fa4aac77a9d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Thu, 31 Mar 2022 11:11:03 +0300 Subject: [PATCH] Add record, list, and table to signature types (#5040) --- crates/nu-parser/src/parser.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index df5197be04..de39e2564c 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -2487,6 +2487,9 @@ pub fn parse_shape_name( b"signature" => SyntaxShape::Signature, b"string" => SyntaxShape::String, b"variable" => SyntaxShape::Variable, + b"record" => SyntaxShape::Record, + b"list" => SyntaxShape::List(Box::new(SyntaxShape::Any)), + b"table" => SyntaxShape::Table, _ => { if bytes.contains(&b'@') { let str = String::from_utf8_lossy(bytes);