summaryrefslogtreecommitdiff
path: root/script/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-05-18 11:02:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-05-18 11:02:02 +0800
commit4eb2567da4cb1afd61acc889366119f32d9c4255 (patch)
tree85c9fd2603f0ff49e78fda9a8ee8d4e017ca20c5 /script/method
parentf4d4010c0857fffb45dc07216062e82e48f06b1b (diff)
downloadlua-language-server-4eb2567da4cb1afd61acc889366119f32d9c4255.zip
应该是判空字符串
Diffstat (limited to 'script/method')
-rw-r--r--script/method/textDocument/semanticTokens.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/method/textDocument/semanticTokens.lua b/script/method/textDocument/semanticTokens.lua
index b201c403..99cdce18 100644
--- a/script/method/textDocument/semanticTokens.lua
+++ b/script/method/textDocument/semanticTokens.lua
@@ -25,7 +25,7 @@ local constLib = {
local Care = {
['name'] = function (source, sources)
- if source.start == source.finish then
+ if source[1] == '' then
return
end
if source:get 'global' then