From 16586e99278a41a7ef0a6b3840bc1ce8c6e8b28e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 2 Jun 2025 09:41:08 +0300 Subject: [PATCH] parser: improve handling of vmap exprs to allow further comparisons --- src/parser.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index d28fffc..b10ae3d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -509,10 +509,11 @@ impl Parser { self.consume(TokenKind::RightBrace, "Expected '}' to close vmap")?; // Return a vmap expression with the previous expression as the mapping target - return Ok(Expression::Vmap { + expr = Expression::Vmap { expr: Some(Box::new(expr)), map, - }); + }; + continue; // allow the outer `while` to detect ==, != … afterwards } break; }