jinja: add 4 missing features (#32352)

* jinja: add 4 missing features

* apply suggestion

Co-authored-by: Aldehir Rojas <hello@alde.dev>

* fix error msg

---------

Co-authored-by: Aldehir Rojas <hello@alde.dev>
This commit is contained in:
Xuan-Son NguyenandAldehir Rojas authored and GitHub committed 2026-11-16 00:40:44 +01:00
1 parent 1719dbb0ee
commit b4c0e00a4f
6 files changed
+97 -46

No files matched your search

+2 -1
View File
@@ -482,7 +482,8 @@ private:
}
statement_ptr parse_unary_expression() {
if (is(token::unary_operator)) {
// a sign where an operand is expected is unary: -x, 1 + -x, x if c else -1
if (is(token::additive_binary_operator) && peek().value != "~") {
depth_guard guard(*this);
size_t start_pos = current;
auto op = next();