summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-29 11:01:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-29 11:01:14 +0800
commitf443b2f2ee4f7fc7d67856259b3e976674a9bdc9 (patch)
tree8967d0fc94f81a177710b6c0758979091d0ec222
parent27b27cc0e6ac2193c927c20928089d8f8ebf02f9 (diff)
downloadlua-language-server-f443b2f2ee4f7fc7d67856259b3e976674a9bdc9.zip
过滤掉下划线
-rw-r--r--server/src/core/document_symbol.lua3
1 files changed, 3 insertions, 0 deletions
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 {