diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-06 14:56:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-06 14:56:13 +0800 |
commit | faffcd9d8d94ddc965adce302850195d8390d170 (patch) | |
tree | 9be5ffd74e831c95fbb108489fec6c91939216d1 /server/src/matcher/compile.lua | |
parent | e228f090618a68a96fee30c40b9d7d10e04ed12d (diff) | |
download | lua-language-server-faffcd9d8d94ddc965adce302850195d8390d170.zip |
重定义的局部变量
Diffstat (limited to 'server/src/matcher/compile.lua')
-rw-r--r-- | server/src/matcher/compile.lua | 1 |
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 |