diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-11-17 14:39:56 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-11-28 11:36:09 +0100 |
commit | b3020ee8bf979037e4191558ee7f1131b5c82de7 (patch) | |
tree | 17e82452314d507f105f6030cc8949d149a4ff5f /askama_parser/src/node.rs | |
parent | 80238d7f48fd86ef939e74df9fdc9678ee78a208 (diff) | |
download | askama-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.rs | 2 |
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), ))), )); |