mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
fix(ast): disallow single-member tuples
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
88cdbd4fe6
commit
e2f0848773
@ -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 ~ "]" }
|
||||
|
Loading…
Reference in New Issue
Block a user