summaryrefslogtreecommitdiff
path: root/server/src/matcher/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-30 15:39:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-30 15:39:00 +0800
commitaeeac6d26047020e98636db78de196dc6302cea6 (patch)
tree4b689931ead45b8f8896bdd3522a3946cd4a02f7 /server/src/matcher/definition.lua
parent136fe2532b763534c24714db677b12405a1b3712 (diff)
downloadlua-language-server-aeeac6d26047020e98636db78de196dc6302cea6.zip
修正bug
Diffstat (limited to 'server/src/matcher/definition.lua')
-rw-r--r--server/src/matcher/definition.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua
index 236e4924..163d4eea 100644
--- a/server/src/matcher/definition.lua
+++ b/server/src/matcher/definition.lua
@@ -132,8 +132,12 @@ function mt:searchSimple(simple)
end
else
if obj.index then
- var = self:getField(var, obj[1], obj)
- self:checkVar(var, obj)
+ if obj.type == 'string' or obj.type == 'number' or obj.type == 'boolean' then
+ var = self:getField(var, obj[1], obj)
+ self:checkVar(var, obj)
+ else
+ self:searchExp(obj)
+ end
else
var = nil
end