aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-24 14:47:33 +0000
committergingerBill <bill@gingerbill.org>2022-01-24 14:47:33 +0000
commit2554c72bb219286825ee8d47a2c6c748416acb0e (patch)
tree21abdc2a6e9fe30d9f6804ef04ae36b7609a4b04 /src/docs_writer.cpp
parent49872e40dcd88f6b011a79baccdadf509f062795 (diff)
Update CommentGroup parsing for struct types
Diffstat (limited to 'src/docs_writer.cpp')
-rw-r--r--src/docs_writer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp
index 0a990cc37..825ca113f 100644
--- a/src/docs_writer.cpp
+++ b/src/docs_writer.cpp
@@ -811,6 +811,12 @@ OdinDocEntityIndex odin_doc_add_entity(OdinDocWriter *w, Entity *e) {
comment = e->decl_info->comment;
docs = e->decl_info->docs;
}
+ if (!comment && e->kind == Entity_Variable) {
+ comment = e->Variable.comment;
+ }
+ if (!docs && e->kind == Entity_Variable) {
+ docs = e->Variable.docs;
+ }
String link_name = {};