diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index a80dfb341d..1ab2f74e3d 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -2717,33 +2717,22 @@ pub fn parse_shape_name( b"bool" => SyntaxShape::Boolean, b"cell-path" => SyntaxShape::CellPath, b"closure" => SyntaxShape::Closure(None), //FIXME: Blocks should have known output types - b"cond" => SyntaxShape::RowCondition, - // b"custom" => SyntaxShape::Custom(Box::new(SyntaxShape::Any), SyntaxShape::Int), b"datetime" => SyntaxShape::DateTime, b"directory" => SyntaxShape::Directory, b"duration" => SyntaxShape::Duration, b"error" => SyntaxShape::Error, - b"expr" => SyntaxShape::Expression, b"float" => SyntaxShape::Float, b"filesize" => SyntaxShape::Filesize, - b"full-cell-path" => SyntaxShape::FullCellPath, b"glob" => SyntaxShape::GlobPattern, b"int" => SyntaxShape::Int, - b"import-pattern" => SyntaxShape::ImportPattern, - b"keyword" => SyntaxShape::Keyword(vec![], Box::new(SyntaxShape::Any)), _ if bytes.starts_with(b"list") => parse_list_shape(working_set, bytes, span), - b"math" => SyntaxShape::MathExpression, b"nothing" => SyntaxShape::Nothing, b"number" => SyntaxShape::Number, - b"one-of" => SyntaxShape::OneOf(vec![]), - b"operator" => SyntaxShape::Operator, b"path" => SyntaxShape::Filepath, b"range" => SyntaxShape::Range, _ if bytes.starts_with(b"record") => parse_collection_shape(working_set, bytes, span), - b"signature" => SyntaxShape::Signature, b"string" => SyntaxShape::String, _ if bytes.starts_with(b"table") => parse_collection_shape(working_set, bytes, span), - b"var-with-opt-type" => SyntaxShape::VarWithOptType, _ => { if bytes.contains(&b'@') { let split: Vec<_> = bytes.split(|b| b == &b'@').collect();