1
0
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:
Alexander Medvednikov
2019-10-25 18:53:45 +03:00
parent 090e1a87b7
commit c30f16a038
2 changed files with 15 additions and 11 deletions

View File

@ -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 ''
}