diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index 742bd22644..33ecdadd3a 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -1594,6 +1594,7 @@ pub fn parse_number(working_set: &mut StateWorkingSet, span: Span) -> Expression pub fn parse_range(working_set: &mut StateWorkingSet, span: Span) -> Option { trace!("parsing: range"); + let starting_error_count = working_set.parse_errors.len(); // Range follows the following syntax: [][][] // where is ".." @@ -1715,6 +1716,10 @@ pub fn parse_range(working_set: &mut StateWorkingSet, span: Span) -> Option