summaryrefslogtreecommitdiff
path: root/server/src/matcher/vm.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-19 11:37:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-19 11:37:28 +0800
commit1eaca995d45ad52e6f8d68ac71f54e6663f275e6 (patch)
tree3ae58d68e902d7ecddd2abc4e40c7603ba477189 /server/src/matcher/vm.lua
parent40fb8cf09860cafe5734a449045ea8b6cd18cbf9 (diff)
downloadlua-language-server-1eaca995d45ad52e6f8d68ac71f54e6663f275e6.zip
action匹配失败后继续去匹配exp
Diffstat (limited to 'server/src/matcher/vm.lua')
-rw-r--r--server/src/matcher/vm.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua
index 0633934d..e1da6a81 100644
--- a/server/src/matcher/vm.lua
+++ b/server/src/matcher/vm.lua
@@ -1053,6 +1053,7 @@ function mt:doAction(action)
elseif tp == 'local' then
self:doLocal(action)
elseif tp == 'simple' then
+ -- call
self:getSimple(action, 'value')
elseif tp == 'if' then
self:doIf(action)
@@ -1068,6 +1069,8 @@ function mt:doAction(action)
self:doFunction(action)
elseif tp == 'localfunction' then
self:doLocalFunction(action)
+ else
+ self:getExp(action)
end
end