mirror of
https://github.com/go-home-admin/toolset.git
synced 2025-12-24 13:37:52 +08:00
fixed: 注释文本仅获取至变量声明前
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user