ci: fix code-formatting job
parent
5d36a59dd8
commit
1675b6f3e0
|
@ -1013,9 +1013,10 @@ fn (mut p Parser) parse_multi_expr(is_top_level bool) ast.Stmt {
|
|||
p.error('expecting `:=` (e.g. `mut x :=`)')
|
||||
return ast.Stmt{}
|
||||
}
|
||||
// TODO remove translated
|
||||
if p.tok.kind in [.assign, .decl_assign] || p.tok.kind.is_assign() {
|
||||
return p.partial_assign_stmt(left, left_comments)
|
||||
} else if !p.pref.translated // TODO remove translated
|
||||
} else if !p.pref.translated
|
||||
&& tok.kind !in [.key_if, .key_match, .key_lock, .key_rlock, .key_select]
|
||||
&& left0 !is ast.CallExpr && (is_top_level || p.tok.kind != .rcbr)
|
||||
&& left0 !is ast.PostfixExpr && !(left0 is ast.InfixExpr
|
||||
|
|
Loading…
Reference in New Issue