mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
parser: add additional paren for multi case branch
This commit is contained in:
parent
dd670fb4a3
commit
5c43bfbf13
1 changed files with 3 additions and 0 deletions
|
@ -3474,6 +3474,9 @@ fn (p mut Parser) match_statement(is_expr bool) string {
|
||||||
p.expected_type = ''
|
p.expected_type = ''
|
||||||
|
|
||||||
if p.tok != .comma {
|
if p.tok != .comma {
|
||||||
|
if got_comma {
|
||||||
|
p.gen(') ')
|
||||||
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
p.check(.comma)
|
p.check(.comma)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue