aboutsummaryrefslogtreecommitdiff
path: root/src/server/documentation.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-17 11:09:45 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-17 11:27:56 -0400
commitaa4287a6c8bc06278db0abd5f7db902cf52af200 (patch)
treef87545ad02a095a8c08d4fd5081e61312e5935b7 /src/server/documentation.odin
parentbdc164ca3247cd1f5fb25c0efd5bab553cfd1573 (diff)
Fix symbol information for keyword completions
Diffstat (limited to 'src/server/documentation.odin')
-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)