From 72718c2a62e921987ed4988af839a7d5f05cccf5 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Sun, 12 Nov 2023 12:49:58 +1100 Subject: [PATCH] parser: fix parsing comments after new attribute syntax --- vlib/v/parser/struct.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/parser/struct.v b/vlib/v/parser/struct.v index c730ea882f0827..e0d83197c610f1 100644 --- a/vlib/v/parser/struct.v +++ b/vlib/v/parser/struct.v @@ -305,6 +305,7 @@ fn (mut p Parser) struct_decl(is_anon bool) ast.StructDecl { } } p.inside_struct_attr_decl = false + comments << p.eat_comments() } ast_fields << ast.StructField{ name: field_name