From c5c37f56a1232ff924a6bfda6c1c05e64a6241b1 Mon Sep 17 00:00:00 2001 From: yossyJ <28825627+yossyJ@users.noreply.github.com> Date: Tue, 8 Jan 2019 23:57:45 +0900 Subject: Allow trailing commas in tuples (#188) --- askama_derive/src/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'askama_derive/src/parser.rs') diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs index 27a9ed0..c4cb52d 100644 --- a/askama_derive/src/parser.rs +++ b/askama_derive/src/parser.rs @@ -296,6 +296,7 @@ named!(target_tuple, do_parse!( res }) )) >> + opt!(ws!(tag!(","))) >> tag!(")") >> (Target::Tuple(args.unwrap_or_default())) )); -- cgit