summaryrefslogtreecommitdiff
path: root/script/vm/def.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-09 16:17:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-09 16:17:59 +0800
commit78875f59fe2fa846d62bf955805b647d17cf87d2 (patch)
tree39076ec29b109980435278450c4c2c02b662b8a4 /script/vm/def.lua
parentfcafaa21f8df0423568ac67fe1c6159f6aa69173 (diff)
downloadlua-language-server-78875f59fe2fa846d62bf955805b647d17cf87d2.zip
trace-global
Diffstat (limited to 'script/vm/def.lua')
-rw-r--r--script/vm/def.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/def.lua b/script/vm/def.lua
index c9558234..5388a384 100644
--- a/script/vm/def.lua
+++ b/script/vm/def.lua
@@ -78,7 +78,7 @@ function vm.getDefs(source)
end
if not mark[src] then
mark[src] = true
- if guide.isSet(src)
+ if guide.isAssign(src)
or guide.isLiteral(src) then
results[#results+1] = src
end