diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-30 15:39:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-30 15:39:00 +0800 |
commit | aeeac6d26047020e98636db78de196dc6302cea6 (patch) | |
tree | 4b689931ead45b8f8896bdd3522a3946cd4a02f7 /server/src | |
parent | 136fe2532b763534c24714db677b12405a1b3712 (diff) | |
download | lua-language-server-aeeac6d26047020e98636db78de196dc6302cea6.zip |
修正bug
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/matcher/definition.lua | 8 |
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 |