aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-12 10:15:46 -0400
committerGitHub <noreply@github.com>2025-08-12 10:15:46 -0400
commit9e6c39fcd74edce577015d4c2a09cbad89adf958 (patch)
treea622c9d25259eec1b60f7e83ce1898d046ff6e08 /src
parent35a6216537c8aaa44c68df6c37b3f54cf37c2d29 (diff)
parenta757b6029e6d7397700b12e7b8702161215b5373 (diff)
Merge pull request #863 from BradLewis/master
Revert filtering docs above symbols due to issues when using attributes
Diffstat (limited to 'src')
-rw-r--r--src/server/ast.odin6
1 files changed, 0 insertions, 6 deletions
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 {