diff --git a/parser/protoc.go b/parser/protoc.go index 09d2368..e8d74bf 100644 --- a/parser/protoc.go +++ b/parser/protoc.go @@ -516,7 +516,9 @@ func protoEnum(l []*word, offset int) (Enum, int) { attr = Attr{} } default: - attr.Doc += work.Str + if attr.Name == "" { + attr.Doc += work.Str + } } }