diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-07-30 11:15:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-07-30 11:15:48 +0800 |
commit | 6510483300e6cf94a916d9688969471124558fa2 (patch) | |
tree | 6f950522c1e85f0aca9ecc63a06c79b32ba4d3f5 /server/src | |
parent | 459717cd81450acddd863bcabce9e77a3a1efec3 (diff) | |
download | lua-language-server-6510483300e6cf94a916d9688969471124558fa2.zip |
支持新的tags
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/vm/vm.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index d41d17bb..7bae408c 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -861,7 +861,6 @@ function mt:doLocal(action) self:instantSource(action) local vars = action[1] local exps = action[2] - local tags = action[3] local values if exps then local value = self:getExp(exps) @@ -884,7 +883,7 @@ function mt:doLocal(action) if values then value = values[i] end - self:createLocal(key[1], key, value, tags, emmy, comment) + self:createLocal(key[1], key, value, emmy, comment) end) end @@ -1196,7 +1195,7 @@ function mt:bindLabel(source, label, action) end end -function mt:createLocal(key, source, value, tags, emmy, comment) +function mt:createLocal(key, source, value, emmy, comment) local loc = self:bindLocal(source) if not value then value = self:createValue('nil', source) @@ -1208,7 +1207,7 @@ function mt:createLocal(key, source, value, tags, emmy, comment) return loc end - loc = localMgr.create(key, source, value, tags) + loc = localMgr.create(key, source, value, source.tags) loc:setEmmy(emmy) loc:setComment(comment) self:saveLocal(key, loc) |