From d4551030c45ba8e2edda43aeba0d33ae5ac29371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9B=9B=E5=85=89=E5=B9=B4?= Date: Fri, 7 May 2021 17:10:13 +0800 Subject: [PATCH] [bug-fix]hover struct field not show docs. --- .gitignore | 1 + src/analysis.zig | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8b0d86e..5ab8bbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Zig magic stuff /zig-cache +/zig-out debug release \ No newline at end of file diff --git a/src/analysis.zig b/src/analysis.zig index 92b4f13..f64f773 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -41,6 +41,7 @@ pub fn getDocComments( .global_var_decl, .aligned_var_decl, .simple_var_decl, + .container_field_init, => { if (getDocCommentTokenIndex(tokens, base)) |doc_comment_index| return try collectDocComments(allocator, tree, doc_comment_index, format, false);