summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hover/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hover/init.lua b/script/core/hover/init.lua
index fb5f7cd5..ed596b3d 100644
--- a/script/core/hover/init.lua
+++ b/script/core/hover/init.lua
@@ -86,7 +86,8 @@ local function getHover(source)
else
addHover(source, true, oop)
for _, def in ipairs(vm.getDefs(source)) do
- if def.type == 'global' then
+ if def.type == 'global'
+ or def.type == 'setlocal' then
goto CONTINUE
end
if guide.isOOP(def) then