[bug-fix]hover struct field not show docs.

This commit is contained in:
四光年 2021-05-07 17:10:13 +08:00
parent b6e40b744d
commit d4551030c4
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
# Zig magic stuff # Zig magic stuff
/zig-cache /zig-cache
/zig-out
debug debug
release release

View File

@ -41,6 +41,7 @@ pub fn getDocComments(
.global_var_decl, .global_var_decl,
.aligned_var_decl, .aligned_var_decl,
.simple_var_decl, .simple_var_decl,
.container_field_init,
=> { => {
if (getDocCommentTokenIndex(tokens, base)) |doc_comment_index| if (getDocCommentTokenIndex(tokens, base)) |doc_comment_index|
return try collectDocComments(allocator, tree, doc_comment_index, format, false); return try collectDocComments(allocator, tree, doc_comment_index, format, false);