diff options
Diffstat (limited to 'server/src/matcher/compile.lua')
-rw-r--r-- | server/src/matcher/compile.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua index eb85bc61..4e0018a9 100644 --- a/server/src/matcher/compile.lua +++ b/server/src/matcher/compile.lua @@ -62,6 +62,7 @@ function mt:createLocal(key, source, var) end if not var then var = self:createVar('local', key, source) + self:addInfo(var, 'local', source) end self.env.var[key] = var return var @@ -514,7 +515,7 @@ return function (ast) } }, mt) searcher.env.label = {} - searcher:createLocal('_ENV') + searcher:createLocal('_ENV', { start = -1, finish = -1 }) searcher:searchActions(ast) return searcher.results |