summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-17 16:34:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-17 16:34:38 +0800
commitfde2dc4cdb275aeb550c7d0af96875d4c7c2affb (patch)
tree035503c333402ab35a111440a50c5a30ec2da546 /script/core
parentb5f3260339434e6fce3b792c741c67ea5177c868 (diff)
downloadlua-language-server-fde2dc4cdb275aeb550c7d0af96875d4c7c2affb.zip
只检查fori形式的控制变量修改
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/diagnostics.lua b/script/core/diagnostics.lua
index f488dba5..0ec98954 100644
--- a/script/core/diagnostics.lua
+++ b/script/core/diagnostics.lua
@@ -861,9 +861,9 @@ function mt:searchSetForState(callback)
if source.type == 'loop' then
locs[#locs+1] = source.arg:bindLocal()
elseif source.type == 'in' then
- self.vm:forList(source.arg, function (arg)
- locs[#locs+1] = arg:bindLocal()
- end)
+ --self.vm:forList(source.arg, function (arg)
+ -- locs[#locs+1] = arg:bindLocal()
+ --end)
end
end)
for i = 1, #locs do