summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-01 20:51:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-01 20:51:10 +0800
commit5e9e75b46fdacda1bb1479780af6a0132d7d17cb (patch)
tree0e13f27a73f67aad24b81e504dec9949cceb68c0 /script/vm
parent74e8cdc64719198018a565f438fa1ab66bfc71f5 (diff)
downloadlua-language-server-5e9e75b46fdacda1bb1479780af6a0132d7d17cb.zip
fix
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index a38329f8..52f1083b 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -211,6 +211,9 @@ local searchFieldSwitch = util.switch()
end)
: case 'doc.type.table'
: call(function (suri, source, key, ref, pushResult)
+ if type(key) == 'string' and key:find(vm.ID_SPLITE) then
+ return
+ end
for _, field in ipairs(source.fields) do
local fieldKey = field.name
if fieldKey.type == 'doc.type' then