aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askama/src/parser.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/askama/src/parser.rs b/askama/src/parser.rs
index 3da569e..d0ad809 100644
--- a/askama/src/parser.rs
+++ b/askama/src/parser.rs
@@ -93,8 +93,7 @@ named!(cond_block<(Option<Expr>, Nodes)>, do_parse!(
named!(block_if<Node>, do_parse!(
tag_s!("{%") >>
- ws!(tag_s!("if")) >>
- cond: ws!(expr_any) >>
+ cond: ws!(cond_if) >>
tag_s!("%}") >>
block: parse_template >>
elifs: many0!(cond_block) >>