summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-02-10 18:08:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-02-10 18:08:19 +0800
commit3154cef2313eb5ec7e067571f7ff6438b8a26ced (patch)
tree468bc1be0b3f693449e7906267989e80a5db8997 /script/vm
parent4943e05d47dd2b5a572b30a2ddbb7b886fe2b05b (diff)
downloadlua-language-server-3154cef2313eb5ec7e067571f7ff6438b8a26ced.zip
fix #1887
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/tracer.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/vm/tracer.lua b/script/vm/tracer.lua
index a13d00e1..b526d087 100644
--- a/script/vm/tracer.lua
+++ b/script/vm/tracer.lua
@@ -282,6 +282,10 @@ local lookIntoChild = util.switch()
---@param topNode vm.node
---@param outNode? vm.node
: call(function (tracer, action, topNode, outNode)
+ if action.type == 'loop' then
+ tracer:lookIntoChild(action.init, topNode)
+ tracer:lookIntoChild(action.max, topNode)
+ end
if action[1] then
tracer:lookIntoBlock(action, action.bstart, topNode:copy())
local lastAssign = tracer:getLastAssign(action.start, action.finish)