summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-17 14:39:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-17 14:39:23 +0800
commit65aa894f82033b636118e0919b5b3195e86af9a9 (patch)
tree4496f760e1ffdd591f9d0b442cb1ff40585adfcb /script/workspace
parent50e027378a627146f891ee8c5b5e838096d6f334 (diff)
downloadlua-language-server-65aa894f82033b636118e0919b5b3195e86af9a9.zip
some fix
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/require-path.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua
index f1dc2fb9..4503f0ee 100644
--- a/script/workspace/require-path.lua
+++ b/script/workspace/require-path.lua
@@ -17,7 +17,7 @@ local function getOnePath(path, searcher)
local start = stemSearcher:match '()%?' or 1
for pos = start, #stemPath do
local word = stemPath:sub(start, pos)
- local newSearcher = stemSearcher:gsub('%?', word)
+ local newSearcher = stemSearcher:gsub('%?', (word:gsub('%%', '%%%%')))
if newSearcher == stemPath then
return word
end