summaryrefslogtreecommitdiffstats
path: root/crates/rebel-parse/src/grammar/recipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rebel-parse/src/grammar/recipe.rs')
-rw-r--r--crates/rebel-parse/src/grammar/recipe.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rebel-parse/src/grammar/recipe.rs b/crates/rebel-parse/src/grammar/recipe.rs
index d1deba4..a00d150 100644
--- a/crates/rebel-parse/src/grammar/recipe.rs
+++ b/crates/rebel-parse/src/grammar/recipe.rs
@@ -66,6 +66,7 @@ peg::parser! {
expr:@ p('(') args:args() p(')') { Expr::apply(expr, args) }
expr:@ p('[') index:expr() p(']') { Expr::index(expr, index) }
--
+ expr:@ p('.') method:field() p('(') args:args() p(')') { Expr::method(expr, method, args) }
expr:@ p('.') field:field() { Expr::field(expr, field) }
--
p('(') e:expr() p(')') { Expr::paren(e) }