mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Simpler parse improvement (#3566)
This commit is contained in:
@ -897,10 +897,7 @@ fn parse_arg(
|
||||
|
||||
// before anything else, try to see if this is a number in paranthesis
|
||||
if lite_arg.item.starts_with('(') {
|
||||
let (expr, err) = parse_full_column_path(&lite_arg, scope);
|
||||
if err.is_none() {
|
||||
return (expr, None);
|
||||
}
|
||||
return parse_full_column_path(&lite_arg, scope);
|
||||
}
|
||||
|
||||
match expected_type {
|
||||
|
Reference in New Issue
Block a user