From a757b6029e6d7397700b12e7b8702161215b5373 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 12 Aug 2025 10:10:49 -0400 Subject: Revert filtering docs above symbols due to issues when using attributes --- src/server/ast.odin | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/server') diff --git a/src/server/ast.odin b/src/server/ast.odin index 28591f0..7c0921c 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -540,12 +540,6 @@ get_doc :: proc(node: ^ast.Expr, comment: ^ast.Comment_Group, allocator: mem.All return "" } - // The odin parser currently incorrectly adds comments that are more than a line above - // the symbol as a doc comment. We do a quick check here to handle that specific case. - if node != nil && comment.list[len(comment.list) - 1].pos.line < node.pos.line - 1 { - return "" - } - tmp: string for doc in comment.list { -- cgit v1.2.3