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