diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-28 16:36:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-28 16:36:50 +0800 |
commit | 8c3389778db135c4fef78db2ba5cb50d4cb5b448 (patch) | |
tree | 2c729526aad0f562edfe6794dba81f1136e5b46d /server-beta/src/core/definition.lua | |
parent | 13a9025d969bc416cd4c1057865448812f00e00b (diff) | |
download | lua-language-server-8c3389778db135c4fef78db2ba5cb50d4cb5b448.zip |
支持函数返回值
Diffstat (limited to 'server-beta/src/core/definition.lua')
-rw-r--r-- | server-beta/src/core/definition.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server-beta/src/core/definition.lua b/server-beta/src/core/definition.lua index 305bb868..8a808e23 100644 --- a/server-beta/src/core/definition.lua +++ b/server-beta/src/core/definition.lua @@ -5,7 +5,8 @@ local files = require 'files' local function findDef(searcher, source, callback) searcher:eachRef(source, function (info) if info.mode == 'declare' - or info.mode == 'set' then + or info.mode == 'set' + or info.mode == 'return' then local src = info.source local uri = info.uri if src.type == 'setfield' |