mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:15:49 +02:00
Fix issue in external subexpression paths (#3642)
* Fix issue in external subexpression paths * new clippy dropped * clippy
This commit is contained in:
@ -725,10 +725,8 @@ fn parse_external_arg(
|
||||
lite_arg: &Spanned<String>,
|
||||
scope: &dyn ParserScope,
|
||||
) -> (SpannedExpression, Option<ParseError>) {
|
||||
if lite_arg.item.starts_with('$') {
|
||||
parse_dollar_expr(lite_arg, scope)
|
||||
} else if lite_arg.item.starts_with('(') {
|
||||
parse_subexpression(lite_arg, scope)
|
||||
if lite_arg.item.starts_with('$') || lite_arg.item.starts_with('(') {
|
||||
parse_full_column_path(lite_arg, scope)
|
||||
} else {
|
||||
(
|
||||
SpannedExpression::new(Expression::string(lite_arg.item.clone()), lite_arg.span),
|
||||
|
Reference in New Issue
Block a user