aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ast/parser.go')
-rw-r--r--pkg/ast/parser.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go
index a7cfdbf02..b28658de8 100644
--- a/pkg/ast/parser.go
+++ b/pkg/ast/parser.go
@@ -376,9 +376,9 @@ func (p *parser) parseStruct(name *Ident) *Struct {
p.consume(tokNewLine)
}
if p.tryConsume(tokLBrack) {
- str.Attrs = append(str.Attrs, p.parseIdent())
+ str.Attrs = append(str.Attrs, p.parseType())
for p.tryConsume(tokComma) {
- str.Attrs = append(str.Attrs, p.parseIdent())
+ str.Attrs = append(str.Attrs, p.parseType())
}
p.consume(tokRBrack)
}