diff --git a/crates/parser/src/grammar.pest b/crates/parser/src/grammar.pest index da34ad7..e4f748d 100644 --- a/crates/parser/src/grammar.pest +++ b/crates/parser/src/grammar.pest @@ -91,7 +91,7 @@ generics = { "<" ~ (generic ~ ("," ~ generic)*)? ~ ">" } // ====================================================== tuple_type = { - "[" ~ (type_expr ~ ("," ~ type_expr)*)? ~ "]" + "[" ~ (type_expr ~ ("," ~ type_expr)*)? ~ ","? ~ "]" } path_type = { @@ -455,7 +455,7 @@ closure = { type_expr? ~ "|" ~ param_list ~ "|" } // ------------------------------------------------------ tuple = { - "(" ~ (expr ~ ("," ~ expr)*)? ~ ")" + "(" ~ (expr ~ ("," ~ expr)*)? ~ ","? ~ ")" } array = {