aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/documentation.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin
index a27c32d..a0922fd 100644
--- a/src/server/documentation.odin
+++ b/src/server/documentation.odin
@@ -692,6 +692,9 @@ write_comments :: proc(sb: ^strings.Builder, comments: []^ast.Comment_Group, ind
}
construct_symbol_information :: proc(ast_context: ^AstContext, symbol: Symbol) -> string {
+ if symbol.name in keywords_docs {
+ return symbol.name
+ }
sb := strings.builder_make(ast_context.allocator)
write_symbol_attributes(&sb, symbol)
write_symbol_name(&sb, symbol)