summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-17 16:44:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-17 16:44:06 +0800
commit6c89b0a55de7e47c9300b4f42421d8f45433da4c (patch)
treed4fb9856bfba1807cb770884edc57fe79a3df80d /script/vm
parent69b22d87c64af7e6da633366c45b44735f92ef0a (diff)
downloadlua-language-server-6c89b0a55de7e47c9300b4f42421d8f45433da4c.zip
more special treates for meta files
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index a6eda13e..3342710a 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1744,6 +1744,12 @@ local compilerSwitch = util.switch()
if firstSet then
local setNode = vm.compileNode(firstSet)
vm.setNode(source, setNode)
+ if vm.isMetaFile(luri) then
+ for i = 2, #link.sets do
+ setNode = vm.compileNode(link.sets[i])
+ vm.setNode(source, setNode)
+ end
+ end
end
end
end