summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-05 15:21:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-05 15:21:17 +0800
commitc0ee6e9d999918bc7599625feddbff6ba005c270 (patch)
treea68aeb030f47495c61a56e85683c2a4f89157f0d /script
parent60189b2603798bba46e0c0aefdbad575efebfcee (diff)
downloadlua-language-server-c0ee6e9d999918bc7599625feddbff6ba005c270.zip
fix #1279
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 1936fc75..cb54b054 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -663,7 +663,7 @@ function vm.compileByParentNode(source, key, ref, pushResult)
---@cast node vm.global
and not guide.isBasicType(node.name)
)
- or node.type == 'doc.type.string' then
+ or guide.isLiteral(node) then
searchFieldSwitch(node.type, suri, node, key, ref, function (res, markDoc)
if markDoc then
docedResults[#docedResults+1] = res