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

run vfmt on table.v

This commit is contained in:
Alexander Medvednikov
2019-12-19 22:52:27 +03:00
parent 1679457f6b
commit ce86626ec2
5 changed files with 271 additions and 211 deletions

View File

@@ -46,6 +46,7 @@ fn (p mut Parser) match_statement(is_expr bool) string {
// allow braces is else
got_brace := p.tok == .lcbr
if got_brace {
p.fspace()
p.check(.lcbr)
}
@@ -73,7 +74,8 @@ fn (p mut Parser) match_statement(is_expr bool) string {
}
if is_expr {
// statements are dissallowed (if match is expression) so user cant declare variables there and so on
// statements are dissallowed (if match is expression) so
// user cant declare variables there and so on
p.gen(':(')
// allow braces is else
@@ -185,6 +187,7 @@ fn (p mut Parser) match_statement(is_expr bool) string {
}
// braces are required for now
p.fgen_nl()
p.check(.rcbr)
p.gen(')')