parser: improve handling of vmap exprs to allow further comparisons

This commit is contained in:
raf 2025-06-02 09:41:08 +03:00
commit 16586e9927
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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;
}