summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-16 14:50:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-16 14:50:35 +0800
commit225fd6a94b989dc489d7e884ddd5845cd208aeea (patch)
treef57b48397cdf85ada40a079380b2fa4fa1bf8dbc /script
parent6fd670b15c9403e92ab9a803f8fa885fe3d9bee2 (diff)
downloadlua-language-server-225fd6a94b989dc489d7e884ddd5845cd208aeea.zip
fix #1215 penetrate parentheses
Diffstat (limited to 'script')
-rw-r--r--script/vm/runner.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua
index 43cbd155..793b4417 100644
--- a/script/vm/runner.lua
+++ b/script/vm/runner.lua
@@ -294,6 +294,8 @@ function mt:_lookInto(action, topNode, outNode)
self:_lookInto(arg, topNode)
end
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)