mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:36:08 +02:00
Add parser improvements (#2679)
* Add parser improvements Previously everything starting with "$" was parsed as a column path. With this commit applied, the lite_arg starting with $ is parsed as the most appropriate thing - $true/$false ==> Expression::Boolean - $(...) ==> Invocation - $it ==> ColumnPath - Anything with at least one '.' ==> ColumnPath - Anything else ==> Variable * Ignore failing tests
This commit is contained in:
@ -50,6 +50,7 @@ fn alias_parses_path_tilde() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn error_alias_wrong_shape_shallow() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
@ -63,6 +64,7 @@ fn error_alias_wrong_shape_shallow() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn error_alias_wrong_shape_deep_invocation() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
@ -76,6 +78,7 @@ fn error_alias_wrong_shape_deep_invocation() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn error_alias_wrong_shape_deep_binary() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
@ -89,6 +92,7 @@ fn error_alias_wrong_shape_deep_binary() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn error_alias_wrong_shape_deeper_binary() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
|
Reference in New Issue
Block a user