Skip to content

Commit

Permalink
parser: fix parsing comments after new attribute syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-conigliaro committed Nov 12, 2023
1 parent 744b92a commit 72718c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vlib/v/parser/struct.v
Expand Up @@ -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
Expand Down

0 comments on commit 72718c2

Please sign in to comment.