diff options
author | vallentin <mail@vallentin.dev> | 2020-12-15 08:12:16 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-12-16 09:09:03 +0100 |
commit | cf7dcc1fb188a28672e33819ca9733bc8c1b472f (patch) | |
tree | 4214562545bdc20bf4e6751dc31a1d8059b71dc5 /askama_shared | |
parent | 6615d125bb88e7d5a30c8ba1c37869d2998c59ef (diff) | |
download | askama-cf7dcc1fb188a28672e33819ca9733bc8c1b472f.tar.gz askama-cf7dcc1fb188a28672e33819ca9733bc8c1b472f.tar.bz2 askama-cf7dcc1fb188a28672e33819ca9733bc8c1b472f.zip |
Added set alias for let
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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("-")), |