fixed: 注释文本仅获取至变量声明前

This commit is contained in:
zodial
2024-12-20 15:47:44 +08:00
parent 1c58949184
commit eb13348a1b

View File

@@ -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
}
}
}