summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-01 15:14:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-01 15:14:07 +0800
commiteae05d288db3c668aa1d9324b6cb6b07ddadf303 (patch)
treecfe5459f13c4d25c94d5281f527862830e2ae08a /script/core
parent077059a706cb082cf9ba747e80a0e45dd5b1cafb (diff)
downloadlua-language-server-eae05d288db3c668aa1d9324b6cb6b07ddadf303.zip
not nil
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hint.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index 008349ad..3f97586e 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -34,7 +34,8 @@ local function typeHint(uri, edits, start, finish)
end
end
local infer = vm.getInferType(source, 0)
- if infer == 'any' then
+ if infer == 'any'
+ or infer == 'any' then
return
end
local src = source