summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-19 16:07:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-19 16:07:12 +0800
commit98f234842eca12334c5668d7a3511a068ed528d2 (patch)
tree0bcce2e75842cf16263f96886494915f29eabba7 /script/vm
parentda6cee5ab4a06cbdd4d4d3b23ac7a43726459033 (diff)
downloadlua-language-server-98f234842eca12334c5668d7a3511a068ed528d2.zip
update
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/getLibrary.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/getLibrary.lua b/script/vm/getLibrary.lua
index b52f7240..16e2bd51 100644
--- a/script/vm/getLibrary.lua
+++ b/script/vm/getLibrary.lua
@@ -2,6 +2,9 @@
local vm = require 'vm.vm'
function vm.getLibraryName(source, deep)
+ if source.special then
+ return source.special
+ end
local defs = vm.getDefs(source, deep)
for _, def in ipairs(defs) do
if def.special then