diff options
Diffstat (limited to 'script/vm/runner.lua')
-rw-r--r-- | script/vm/runner.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua index 793b4417..2de06aaa 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -296,10 +296,12 @@ function mt:_lookInto(action, topNode, outNode) end elseif action.type == 'paren' then topNode, outNode = self:_lookInto(action.exp, topNode, outNode) - else - guide.eachSourceContain(action, top.finish, function(source) - self:_lookInto(source, topNode) - end) + elseif action.type == 'return' then + for _, rtn in ipairs(action) do + self:_lookInto(rtn, topNode) + end + elseif action.type == 'getindex' then + self:_lookInto(action.index, topNode) end ::RETURN:: topNode = self:_fastWard(action.finish, topNode) |