diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index e8bf9496c1..ff144c6b6a 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -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