aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/node.rs
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2023-11-17 14:39:56 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-11-28 11:36:09 +0100
commitb3020ee8bf979037e4191558ee7f1131b5c82de7 (patch)
tree17e82452314d507f105f6030cc8949d149a4ff5f /askama_parser/src/node.rs
parent80238d7f48fd86ef939e74df9fdc9678ee78a208 (diff)
downloadaskama-b3020ee8bf979037e4191558ee7f1131b5c82de7.tar.gz
askama-b3020ee8bf979037e4191558ee7f1131b5c82de7.tar.bz2
askama-b3020ee8bf979037e4191558ee7f1131b5c82de7.zip
Allow to pass named arguments to macro calls
Diffstat (limited to 'askama_parser/src/node.rs')
-rw-r--r--askama_parser/src/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_parser/src/node.rs b/askama_parser/src/node.rs
index ba117c5..d11895b 100644
--- a/askama_parser/src/node.rs
+++ b/askama_parser/src/node.rs
@@ -577,7 +577,7 @@ impl<'a> Call<'a> {
cut(tuple((
opt(tuple((ws(identifier), ws(tag("::"))))),
ws(identifier),
- opt(ws(|nested| Expr::arguments(nested, s.level.get()))),
+ opt(ws(|nested| Expr::arguments(nested, s.level.get(), true))),
opt(Whitespace::parse),
))),
));