Skip to content

Commit

Permalink
fixed: 注释文本仅获取至变量声明前
Browse files Browse the repository at this point in the history
  • Loading branch information
zodial committed Dec 20, 2024
1 parent 1c58949 commit eb13348
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parser/protoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit eb13348

Please sign in to comment.