diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-29 11:01:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-29 11:01:14 +0800 |
commit | f443b2f2ee4f7fc7d67856259b3e976674a9bdc9 (patch) | |
tree | 8967d0fc94f81a177710b6c0758979091d0ec222 /server/src/core/document_symbol.lua | |
parent | 27b27cc0e6ac2193c927c20928089d8f8ebf02f9 (diff) | |
download | lua-language-server-f443b2f2ee4f7fc7d67856259b3e976674a9bdc9.zip |
过滤掉下划线
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r-- | server/src/core/document_symbol.lua | 3 |
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 { |