parser: improve handling of vmap exprs to allow further comparisons
This commit is contained in:
parent
6f08d27a59
commit
16586e9927
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue