1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: else, for in

This commit is contained in:
Alexander Medvednikov
2020-02-22 16:59:50 +01:00
parent 5fef8390a1
commit d510cd1e0d
5 changed files with 44 additions and 22 deletions

View File

@ -2556,7 +2556,9 @@ fn (p mut Parser) assoc() string {
p.check_types(p.bool_expression(), f.typ)
p.gen(',')
if p.tok != .rcbr {
p.check(.comma)
if p.tok == .comma {
p.check(.comma)
}
}
p.fgen_nl()
}