aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-05 14:58:33 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-02-05 14:58:33 +0100
commita4a575f05c7b680ba694d88bfb4f6aa5cc031f13 (patch)
treec60b01539105a165bbc75c05c39d8909422ea17b
parent38c467746e11f5da795b920b309a9051d6a39ddf (diff)
downloadaskama-a4a575f05c7b680ba694d88bfb4f6aa5cc031f13.tar.gz
askama-a4a575f05c7b680ba694d88bfb4f6aa5cc031f13.tar.bz2
askama-a4a575f05c7b680ba694d88bfb4f6aa5cc031f13.zip
Allow zero nodes in top-level parser
-rw-r--r--askama/src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama/src/parser.rs b/askama/src/parser.rs
index e29b460..3448330 100644
--- a/askama/src/parser.rs
+++ b/askama/src/parser.rs
@@ -133,7 +133,7 @@ named!(block_for<Node>, do_parse!(
tag_s!("%}") >>
(Node::Loop(var, iter, block))));
-named!(parse_template<Nodes>, many1!(alt!(
+named!(parse_template<Nodes>, many0!(alt!(
take_content |
expr_node |
block_if |