summaryrefslogtreecommitdiff
path: root/server/src/matcher/find_lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/find_lib.lua')
-rw-r--r--server/src/matcher/find_lib.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/matcher/find_lib.lua b/server/src/matcher/find_lib.lua
index 090859db..79cc05f9 100644
--- a/server/src/matcher/find_lib.lua
+++ b/server/src/matcher/find_lib.lua
@@ -1,4 +1,4 @@
-local libs = require 'matcher.library'
+local library = require 'matcher.library'
local function isGlobal(var)
if var.type ~= 'field' then
@@ -105,7 +105,7 @@ end
local function findLib(var)
local value = var.value or var
- for libname, info in pairs(libs.global) do
+ for libname, info in pairs(library.global) do
local fullKey = checkSource(value, libname, info.lib)
if fullKey then
return info.lib, fullKey, false
@@ -117,7 +117,7 @@ local function findLib(var)
end
end
end
- for libname, info in pairs(libs.library) do
+ for libname, info in pairs(library.library) do
local fullKey = checkSource(value, libname, info.lib)
if fullKey then
return info.lib, fullKey, false
@@ -129,7 +129,7 @@ local function findLib(var)
end
end
end
- for libname, info in pairs(libs.object) do
+ for libname, info in pairs(library.object) do
local fullKey = checkSource(value, libname, info.lib)
if fullKey then
return info.lib, fullKey, false