From f443b2f2ee4f7fc7d67856259b3e976674a9bdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 29 Dec 2018 11:01:14 +0800 Subject: =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=8E=89=E4=B8=8B=E5=88=92=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/document_symbol.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua index 5b69de2e..af9021e3 100644 --- a/server/src/core/document_symbol.lua +++ b/server/src/core/document_symbol.lua @@ -86,6 +86,9 @@ local function buildLocal(vm, loc) if loc.hide then return nil end + if loc.key == '_' then + return nil + end local range = { loc.source.start, loc.source.finish } local hvr = hover(loc, loc.source) return { -- cgit v1.2.3