From cf7dcc1fb188a28672e33819ca9733bc8c1b472f Mon Sep 17 00:00:00 2001 From: vallentin Date: Tue, 15 Dec 2020 08:12:16 +0100 Subject: Added set alias for let --- askama_shared/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/parser.rs') diff --git a/askama_shared/src/parser.rs b/askama_shared/src/parser.rs index a40e967..a03952d 100644 --- a/askama_shared/src/parser.rs +++ b/askama_shared/src/parser.rs @@ -802,7 +802,7 @@ fn block_match<'a>(i: &'a [u8], s: &'a Syntax<'a>) -> IResult<&'a [u8], Node<'a> fn block_let(i: &[u8]) -> IResult<&[u8], Node> { let mut p = tuple(( opt(tag("-")), - ws(tag("let")), + ws(alt((tag("let"), tag("set")))), ws(alt((target_single, target_tuple))), opt(tuple((ws(tag("=")), ws(expr_any)))), opt(tag("-")), -- cgit