From e2f084877356dfdbf3388dd0bf8c163c3074cbff Mon Sep 17 00:00:00 2001 From: ljedrz Date: Wed, 14 Oct 2020 11:01:51 +0200 Subject: [PATCH] fix(ast): disallow single-member tuples Signed-off-by: ljedrz --- ast/src/leo.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast/src/leo.pest b/ast/src/leo.pest index c3d9fc7fd8..f9b6c9f4cb 100644 --- a/ast/src/leo.pest +++ b/ast/src/leo.pest @@ -351,7 +351,7 @@ expression_term = { expression = { expression_term ~ (operation_binary ~ expression_term)* } // Declared in expressions/expression_tuple.rs -expression_tuple = { "(" ~ (expression ~ ("," ~ expression)*)? ~ ")" } +expression_tuple = { "(" ~ (expression ~ ("," ~ expression)+)? ~ ")" } // Declared in expressions/array_initializer_expression.rs expression_array_initializer = { "[" ~ expression ~ ";" ~ array_dimensions ~ "]" }