Match multiple patterns

This commit is contained in:
2026-05-19 12:21:20 +02:00
parent 318480f0b5
commit bffc9f073b
4 changed files with 13 additions and 4 deletions
+3 -1
View File
@@ -446,8 +446,10 @@ for_stmt = {
// MATCH
// ------------------------------------------------------
pattern_list = { pattern ~ ("|" ~ pattern)* }
match_item = {
pattern ~ "=>" ~ block
pattern_list ~ "=>" ~ block
}
match_stmt = {