diff options
-rw-r--r-- | script-beta/core/definition.lua | 3 | ||||
-rw-r--r-- | script-beta/core/reference.lua | 3 |
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' |