aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive
diff options
context:
space:
mode:
Diffstat (limited to 'askama_derive')
-rw-r--r--askama_derive/src/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_derive/src/parser.rs b/askama_derive/src/parser.rs
index c4cb52d..2a342fc 100644
--- a/askama_derive/src/parser.rs
+++ b/askama_derive/src/parser.rs
@@ -454,6 +454,7 @@ named!(expr_single<Input, Expr>, alt!(
expr_num_lit |
expr_str_lit |
expr_path |
+ expr_rust_macro |
expr_array_lit |
expr_var |
expr_group
@@ -554,7 +555,7 @@ named!(expr_unary<Input, Expr>, do_parse!(
})
));
-named!(rust_macro<Input, Expr>, do_parse!(
+named!(expr_rust_macro<Input, Expr>, do_parse!(
mname: identifier >>
tag!("!") >>
args: macro_arguments >>
@@ -595,7 +596,6 @@ named!(range_right<Input, Expr>, do_parse!(
named!(expr_any<Input, Expr>, alt!(
range_right |
- rust_macro |
do_parse!(
left: expr_or >>
rest: range_right >> (match rest {