Fix parsing dot dot path (#3331)

This commit is contained in:
JT
2021-04-20 08:18:29 +12:00
committed by GitHub
parent ea5bf9db36
commit 61768aa2fd
2 changed files with 31 additions and 6 deletions

View File

@ -486,13 +486,11 @@ fn parse_dollar_expr(
//Return invocation
trace!("Parsing invocation expression");
parse_invocation(lite_arg, scope)
} else if lite_arg.item.contains("..") {
parse_range(lite_arg, scope)
} else if lite_arg.item.contains('.') {
trace!("Parsing path expression");
parse_full_column_path(lite_arg, scope)
} else if let (expr, None) = parse_range(lite_arg, scope) {
(expr, None)
} else if let (expr, None) = parse_full_column_path(lite_arg, scope) {
(expr, None)
} else {
trace!("Parsing variable expression");
parse_variable(lite_arg, scope)
}
}