diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-12 10:15:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-12 10:15:46 -0400 |
| commit | 9e6c39fcd74edce577015d4c2a09cbad89adf958 (patch) | |
| tree | a622c9d25259eec1b60f7e83ce1898d046ff6e08 /src | |
| parent | 35a6216537c8aaa44c68df6c37b3f54cf37c2d29 (diff) | |
| parent | a757b6029e6d7397700b12e7b8702161215b5373 (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.odin | 6 |
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 { |