aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_parser/src/expr.rs2
-rw-r--r--askama_parser/src/node.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/askama_parser/src/expr.rs b/askama_parser/src/expr.rs
index 2928b57..65a7835 100644
--- a/askama_parser/src/expr.rs
+++ b/askama_parser/src/expr.rs
@@ -119,7 +119,7 @@ impl<'a> Expr<'a> {
}
}),
),
- char(')'),
+ tuple((opt(ws(char(','))), char(')'))),
)),
)(i)
}
diff --git a/askama_parser/src/node.rs b/askama_parser/src/node.rs
index 27d4adc..c2f7b39 100644
--- a/askama_parser/src/node.rs
+++ b/askama_parser/src/node.rs
@@ -493,7 +493,7 @@ impl<'a> Macro<'a> {
delimited(
ws(char('(')),
separated_list0(char(','), ws(identifier)),
- ws(char(')')),
+ tuple((opt(ws(char(','))), char(')'))),
)(i)
}