summaryrefslogtreecommitdiff
path: root/server/src/matcher/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-20 20:30:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-20 20:30:00 +0800
commitce7775f054c07c0ab8f13ed84ca1694659f2ea90 (patch)
treee9853915e2a841a4f9998308826f2610e5a63f4d /server/src/matcher/definition.lua
parent57c35307702b66554ff1b3f2ff3996ce9aabab93 (diff)
downloadlua-language-server-ce7775f054c07c0ab8f13ed84ca1694659f2ea90.zip
支持从require 'xxx'跳转
Diffstat (limited to 'server/src/matcher/definition.lua')
-rw-r--r--server/src/matcher/definition.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua
index c31f817c..18804516 100644
--- a/server/src/matcher/definition.lua
+++ b/server/src/matcher/definition.lua
@@ -64,6 +64,13 @@ local function parseResult(vm, result)
}
end
end
+ elseif tp == 'string' then
+ -- require 'XXX' 专用
+ positions[#positions+1] = {
+ 0,
+ 0,
+ result.uri,
+ }
end
return positions
end