From 7063abec925de02e72af996afd02cbeb50ee4fb1 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Thu, 23 Jul 2020 21:10:40 +0300 Subject: [PATCH] Fixed struct field goto and hover --- src/analysis.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis.zig b/src/analysis.zig index 2920b58..f7d7cfa 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -2041,7 +2041,7 @@ fn makeScopeInternal( if (node.castTag(.ContainerDecl)) |container| { const kind = tree.token_ids[container.kind_token]; - if (kind == .Keyword_struct or (kind == .Keyword_union and container.init_arg_expr == .None)) { + if (empty_field and (kind == .Keyword_struct or (kind == .Keyword_union and container.init_arg_expr == .None))) { continue; }