Match multiple patterns
This commit is contained in:
@@ -446,8 +446,10 @@ for_stmt = {
|
||||
// MATCH
|
||||
// ------------------------------------------------------
|
||||
|
||||
pattern_list = { pattern ~ ("|" ~ pattern)* }
|
||||
|
||||
match_item = {
|
||||
pattern ~ "=>" ~ block
|
||||
pattern_list ~ "=>" ~ block
|
||||
}
|
||||
|
||||
match_stmt = {
|
||||
|
||||
Reference in New Issue
Block a user