From f400a0da0fcd3e4d27d915b57c54f504813ef1d3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Sep 2017 20:24:09 +0200 Subject: pkg/ast: fix struct comment parsing --- pkg/ast/parser.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/ast/parser.go') diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go index 214be7fb9..9e1ab679e 100644 --- a/pkg/ast/parser.go +++ b/pkg/ast/parser.go @@ -353,6 +353,8 @@ func (p *parser) parseCommentBlock() []*Comment { for p.tok == tokComment { comments = append(comments, p.parseComment()) p.consume(tokNewLine) + for p.tryConsume(tokNewLine) { + } } return comments } -- cgit mrf-deployment