summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-01 15:59:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-01 15:59:41 +0800
commit988266b411f82a5cd2c5534e9f8a68fe0867291b (patch)
treea823c5179c14821ea11966b99523adc37bdd0bc5 /script
parent1c181914c105128d2d6c844ff27f8578eb3cc648 (diff)
downloadlua-language-server-988266b411f82a5cd2c5534e9f8a68fe0867291b.zip
not literal
Diffstat (limited to 'script')
-rw-r--r--script/core/hint.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index 55ae809a..f1aea66c 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -33,6 +33,9 @@ local function typeHint(uri, edits, start, finish)
return
end
end
+ if source.value and guide.isLiteral(source.value) then
+ return
+ end
local infer = vm.getInferType(source, 0)
if infer == 'any'
or infer == 'nil' then