summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-11 18:13:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-11 18:13:34 +0800
commit30406bb8db6c33b7da92734da41a7eec884a73c6 (patch)
tree9704db93a246bdfec3f6ee18d051b4c7f6e8a22e /server/src
parent51215e5847cb5d42d4fe650a0e0421782672342f (diff)
downloadlua-language-server-30406bb8db6c33b7da92734da41a7eec884a73c6.zip
修正bug
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/vm.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index c76bf420..e09cfe54 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -15,6 +15,8 @@ function mt:createLocal(key, source, value)
self.scope.locals[key] = loc
self.results.locals[#self.results.locals+1] = loc
+ self:addInfo(loc, 'local', source)
+
local value = value or self:createValue('nil', source)
self:setValue(loc, value, source)
return loc