mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: add ; after a goto label
This commit is contained in:
@ -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 ''
|
||||
}
|
||||
|
Reference in New Issue
Block a user