summaryrefslogtreecommitdiff
path: root/script/method/textDocument/semanticTokens.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/method/textDocument/semanticTokens.lua')
-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