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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rebel-parse/src/grammar/recipe.rs b/crates/rebel-parse/src/grammar/recipe.rs
index 9b1b50b..f0605e4 100644
--- a/crates/rebel-parse/src/grammar/recipe.rs
+++ b/crates/rebel-parse/src/grammar/recipe.rs
@@ -81,7 +81,7 @@ peg::parser! {
rule typ_literal() -> typ::Literal<'a>
= p('(') p(')') { typ::Literal::Unit }
- / p('(') elements:(typ() ** p(',')) p(',')? p(')') {
+ / p('(') elements:(typ() ++ p(',')) p(',')? p(')') {
typ::Literal::Tuple(elements)
}
/ p('[') typ:typ() p(']') {
@@ -187,7 +187,7 @@ peg::parser! {
Ok(expr::Literal::Str{ pieces, kind: *kind })
}
/ p('(') p(')') { expr::Literal::Unit }
- / p('(') elements:(expr() ** p(',')) p(',')? p(')') {
+ / p('(') elements:(expr() ++ p(',')) p(',')? p(')') {
expr::Literal::Tuple(elements)
}
/ p('[') elements:delimited(<expr()>, <p(',')>) p(']') {