From 1675b6f3e09bc8739ad0835387f893faf36584e5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 12 Feb 2021 15:44:12 +0200 Subject: [PATCH] ci: fix code-formatting job --- vlib/v/parser/parser.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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