summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/definition.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua
index 255e6405..ee18e6ff 100644
--- a/server/src/matcher/definition.lua
+++ b/server/src/matcher/definition.lua
@@ -63,6 +63,16 @@ function mt:searchUnary(exp)
return self:searchExp(exp[1])
end
+function mt:searchTable(exp)
+ for _, obj in ipairs(exp) do
+ if obj.type == 'pair' then
+ self:searchExp(obj[2])
+ else
+ self:searchExp(obj)
+ end
+ end
+end
+
function mt:searchExp(exp)
local tp = exp.type
if tp == 'nil' then
@@ -82,6 +92,7 @@ function mt:searchExp(exp)
elseif tp == 'function' then
self:searchFunction(exp)
elseif tp == 'table' then
+ self:searchTable(exp)
end
end