summaryrefslogtreecommitdiff
path: root/script/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-05-18 11:01:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-05-18 11:01:02 +0800
commitf4d4010c0857fffb45dc07216062e82e48f06b1b (patch)
tree271b225fe9e0e91af2765a774f39537e869e6397 /script/method
parentaa2c41c09837c9d6c30014d748db173acf2b4f50 (diff)
downloadlua-language-server-f4d4010c0857fffb45dc07216062e82e48f06b1b.zip
过滤掉 dirty name
Diffstat (limited to 'script/method')
-rw-r--r--script/method/textDocument/semanticTokens.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/method/textDocument/semanticTokens.lua b/script/method/textDocument/semanticTokens.lua
index de50b43b..b201c403 100644
--- a/script/method/textDocument/semanticTokens.lua
+++ b/script/method/textDocument/semanticTokens.lua
@@ -25,6 +25,9 @@ local constLib = {
local Care = {
['name'] = function (source, sources)
+ if source.start == source.finish then
+ return
+ end
if source:get 'global' then
if findLib(source) then
if source[1] == '_G' then