mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix GG struct init
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user