From d1f653f9bd905fbc524882a674ad5724e214371b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 4 Apr 2020 13:11:50 +0200 Subject: [PATCH] parser: fix GG struct init --- vlib/v/parser/parser.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 52a406b845..6ae33e7031 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -667,7 +667,7 @@ pub fn (p mut Parser) name_expr() ast.Expr { // (p.builtin_mod && p.tok.lit in table.builtin_type_names)) && // - (p.tok.lit.len == 1 || !p.tok.lit[p.tok.lit.len - 1].is_capital()) && + (p.tok.lit.len in [1,2] || !p.tok.lit[p.tok.lit.len - 1].is_capital()) && // !p.inside_match_case {