diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-15 15:27:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-15 15:27:54 +0800 |
commit | 6042727fc89328d66e4c63aea1e180a94b7b84f1 (patch) | |
tree | 755b9451efd7af8cdb93ac7e160650fdde167fc3 /script/core/searcher.lua | |
parent | 5f8bad49693f6e7ad67f049e0fa606326fe2ad67 (diff) | |
download | lua-language-server-6042727fc89328d66e4c63aea1e180a94b7b84f1.zip |
cleanup
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r-- | script/core/searcher.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 97e1a7b8..10a6a537 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -242,15 +242,14 @@ function m.searchRefsByID(status, uri, expect, mode) if not parentID then return end - search(parentID, linker.SPLIT_CHAR .. linker.RETURN_INDEX_CHAR .. returnIndex) + search(parentID, linker.RETURN_INDEX .. returnIndex) end local function isCallID(field) if not field then return false end - if field:sub(1, 1) == linker.SPLIT_CHAR - and field:sub(2, 2) == linker.RETURN_INDEX_CHAR then + if field:sub(1, 2) == linker.RETURN_INDEX then return true end return false |