aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-01-24 16:58:39 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-01-24 16:58:39 +0100
commit6a7d821fcc42e58bb90b78f484c70dfa42a56c91 (patch)
tree1d5eede5f6831754489e9ed9677fa9d0006c40df /src/docs_writer.cpp
parent01e29bf27ef0204f586b856363f7a3bf5138052d (diff)
parent42ab882db4a6d5765c68021ade010b468ff4531e (diff)
Merge remote-tracking branch 'upstream/master' into parser-fix
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 = {};