From eb13348a1bfbf1696edb8a5cb5275c6118f32c42 Mon Sep 17 00:00:00 2001 From: zodial Date: Fri, 20 Dec 2024 15:47:44 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=B3=A8=E9=87=8A=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=BB=85=E8=8E=B7=E5=8F=96=E8=87=B3=E5=8F=98=E9=87=8F=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parser/protoc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 + } } }