mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +00:00
Add record, list, and table to signature types (#5040)
This commit is contained in:
parent
385bc40627
commit
d89ad4fafd
1 changed files with 3 additions and 0 deletions
|
@ -2487,6 +2487,9 @@ pub fn parse_shape_name(
|
||||||
b"signature" => SyntaxShape::Signature,
|
b"signature" => SyntaxShape::Signature,
|
||||||
b"string" => SyntaxShape::String,
|
b"string" => SyntaxShape::String,
|
||||||
b"variable" => SyntaxShape::Variable,
|
b"variable" => SyntaxShape::Variable,
|
||||||
|
b"record" => SyntaxShape::Record,
|
||||||
|
b"list" => SyntaxShape::List(Box::new(SyntaxShape::Any)),
|
||||||
|
b"table" => SyntaxShape::Table,
|
||||||
_ => {
|
_ => {
|
||||||
if bytes.contains(&b'@') {
|
if bytes.contains(&b'@') {
|
||||||
let str = String::from_utf8_lossy(bytes);
|
let str = String::from_utf8_lossy(bytes);
|
||||||
|
|
Loading…
Reference in a new issue