We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a54dce0 commit f400a0dCopy full SHA for f400a0d
pkg/ast/parser.go
@@ -353,6 +353,8 @@ func (p *parser) parseCommentBlock() []*Comment {
353
for p.tok == tokComment {
354
comments = append(comments, p.parseComment())
355
p.consume(tokNewLine)
356
+ for p.tryConsume(tokNewLine) {
357
+ }
358
}
359
return comments
360
pkg/ast/testdata/all.txt
@@ -28,3 +28,14 @@ include <linux/foo.h>
28
include "linux/foo.h"
29
incdir </foo/bar>
30
incdir "/foo/bar"
31
+
32
+s2 {
33
+ f1 int8
34
35
+ # comment
36
37
+ f2 int8
38
39
40
41
+}
0 commit comments