Add record, list, and table to signature types (#5040)

This commit is contained in:
Jakub Žádník 2022-03-31 11:11:03 +03:00 committed by GitHub
parent 385bc40627
commit d89ad4fafd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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