We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c8e084 commit 6b5fd63Copy full SHA for 6b5fd63
crates/nu-parser/src/parser.rs
@@ -5231,6 +5231,10 @@ pub fn parse_value(
5231
_ => {}
5232
}
5233
5234
+ if bytes == b"null" {
5235
+ return Expression::new(working_set, Expr::Nothing, span, Type::Nothing);
5236
+ }
5237
+
5238
match shape {
5239
SyntaxShape::Number => parse_number(working_set, span),
5240
SyntaxShape::Float => parse_float(working_set, span),
@@ -5307,9 +5311,6 @@ pub fn parse_value(
5307
5311
b"false" => {
5308
5312
return Expression::new(working_set, Expr::Bool(false), span, Type::Bool);
5309
5313
5310
- b"null" => {
- return Expression::new(working_set, Expr::Nothing, span, Type::Nothing);
- }
5314
b"-inf" | b"inf" | b"NaN" => {
5315
return parse_float(working_set, span);
5316
0 commit comments