summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script-beta/core/definition.lua3
-rw-r--r--script-beta/core/reference.lua3
2 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index 5f16ad84..77bef643 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -18,6 +18,9 @@ local function findDef(source, callback)
return
end
vm.eachDef(source, function (info)
+ if info.source.library then
+ return
+ end
if info.mode == 'declare'
or info.mode == 'set'
or info.mode == 'return' then
diff --git a/script-beta/core/reference.lua b/script-beta/core/reference.lua
index 7e265e97..0f4efbfc 100644
--- a/script-beta/core/reference.lua
+++ b/script-beta/core/reference.lua
@@ -28,6 +28,9 @@ local function findRef(source, offset, callback)
return
end
vm.eachRef(source, function (info)
+ if info.source.library then
+ return
+ end
if info.mode == 'declare'
or info.mode == 'set'
or info.mode == 'get'