summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-05 16:36:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-05 16:36:16 +0800
commit7f3aa8ed3eba0f07a4bd258407f3eaa038f2ce6f (patch)
tree4512c8e5aeef098529e266f04131320a8734f9f2 /server
parent118e6cc829235f721c12b8154f72a627bb8835d5 (diff)
downloadlua-language-server-7f3aa8ed3eba0f07a4bd258407f3eaa038f2ce6f.zip
修正报错
Diffstat (limited to 'server')
-rw-r--r--server/src/matcher/compile.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua
index c9b847e5..eb85bc61 100644
--- a/server/src/matcher/compile.lua
+++ b/server/src/matcher/compile.lua
@@ -430,7 +430,9 @@ function mt:searchFunction(func)
end
function mt:searchLocalFunction(func)
- self:markLocal(func.name)
+ if func.name then
+ self:markLocal(func.name)
+ end
self.env:push()
self:forList(func.arg, function (arg)
self:markLocal(arg)