Add tuple type variable decleration

This commit is contained in:
2026-07-04 19:23:10 +02:00
parent 517a2e5a2b
commit df34c72c97
5 changed files with 21 additions and 11 deletions
+3 -1
View File
@@ -225,9 +225,11 @@ attributes = {
// ======================================================
// DECLARATION HELPERS
// ======================================================
as_kw = { "as" }
var_decl = {
("let" ~ pattern ~ ("," ~ pattern)*)
| type_expr ~ (!tuple_pattern ~ pattern ~ ("," ~ pattern)*)
| type_expr ~ as_kw? ~ (!tuple_pattern ~ pattern ~ ("," ~ pattern)*)
}
field = {