mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
parser: add ; after a goto label
This commit is contained in:
parent
090e1a87b7
commit
c30f16a038
2 changed files with 15 additions and 11 deletions
|
@ -1065,7 +1065,7 @@ fn (p mut Parser) statement(add_semi bool) string {
|
|||
p.fmt_dec()
|
||||
label := p.check_name()
|
||||
p.fmt_inc()
|
||||
p.genln(label + ':')
|
||||
p.genln(label + ': ;')
|
||||
p.check(.colon)
|
||||
return ''
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue