summaryrefslogtreecommitdiff
path: root/server/src/matcher/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/definition.lua')
-rw-r--r--server/src/matcher/definition.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua
index 4dec7430..27dfe450 100644
--- a/server/src/matcher/definition.lua
+++ b/server/src/matcher/definition.lua
@@ -63,11 +63,11 @@ local function parseResult(result)
if tp == 'var' then
local var = result.var
if var.type == 'local' then
- local source = var.source
- if not source then
- return false
+ for _, info in ipairs(var) do
+ if info.type == 'local' then
+ positions[#positions+1] = {info.source.start, info.source.finish}
+ end
end
- positions[1] = {source.start, source.finish}
elseif var.type == 'field' then
for _, info in ipairs(var) do
if info.type == 'set' then