summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-15 11:28:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-15 11:28:00 +0800
commit6f0e8df7934b9c41aac83a6c0b4b0f50a9b50871 (patch)
tree6e342aec35fea50fbfc3ecccdb17e0b5f31c5965 /script/vm/compiler.lua
parent51ee59203868cfe1177403a06d74ae7412c78f4d (diff)
downloadlua-language-server-6f0e8df7934b9c41aac83a6c0b4b0f50a9b50871.zip
fix #1698
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index a17cc5b2..2d7f2a69 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -991,7 +991,8 @@ local function compileLocal(source)
end
end
local hasMarkValue
- if not hasMarkDoc and source.value then
+ if (not hasMarkDoc and source.value)
+ or (source.value and source.value.type == 'table') then
hasMarkValue = true
if source.value.type == 'table' then
vm.setNode(source, source.value)