diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-05-18 11:02:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-05-18 11:02:02 +0800 |
commit | 4eb2567da4cb1afd61acc889366119f32d9c4255 (patch) | |
tree | 85c9fd2603f0ff49e78fda9a8ee8d4e017ca20c5 /script/method | |
parent | f4d4010c0857fffb45dc07216062e82e48f06b1b (diff) | |
download | lua-language-server-4eb2567da4cb1afd61acc889366119f32d9c4255.zip |
应该是判空字符串
Diffstat (limited to 'script/method')
-rw-r--r-- | script/method/textDocument/semanticTokens.lua | 2 |
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 |