summaryrefslogtreecommitdiff
path: root/server/src/matcher/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-06 14:56:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-06 14:56:13 +0800
commitfaffcd9d8d94ddc965adce302850195d8390d170 (patch)
tree9be5ffd74e831c95fbb108489fec6c91939216d1 /server/src/matcher/compile.lua
parente228f090618a68a96fee30c40b9d7d10e04ed12d (diff)
downloadlua-language-server-faffcd9d8d94ddc965adce302850195d8390d170.zip
重定义的局部变量
Diffstat (limited to 'server/src/matcher/compile.lua')
-rw-r--r--server/src/matcher/compile.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua
index 02db109c..9e2da220 100644
--- a/server/src/matcher/compile.lua
+++ b/server/src/matcher/compile.lua
@@ -64,6 +64,7 @@ function mt:createLocal(key, source, var)
var = self:createVar('local', key, source)
self:addInfo(var, 'local', source)
end
+ var.redefinition = self.env.var[key]
self.env.var[key] = var
return var
end