summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-16 22:11:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-16 22:11:23 +0800
commit12b087704082f6d2278c8eb06bd9ac3e7f014c1a (patch)
tree9ff1a55f036a0c125adf9eaf914c1324b236b3ad /script/vm/infer.lua
parentfa518d4f9522b38aca9478ac494e9523cca475f3 (diff)
downloadlua-language-server-12b087704082f6d2278c8eb06bd9ac3e7f014c1a.zip
fix #1061
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index a47783f7..2a64ed52 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -128,6 +128,9 @@ local viewNodeSwitch = util.switch()
infer._hasTable = true
end)
: case 'doc.type.string'
+ : call(function (source, infer)
+ return util.viewString(source[1], source[2])
+ end)
: case 'doc.type.integer'
: case 'doc.type.boolean'
: call(function (source, infer)