diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-17 10:00:10 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-17 10:00:10 +0800 |
commit | 739d3da09872336e94a9295f3a5cee357da8e8f2 (patch) | |
tree | d5fa7d994e117b0651c2b696e73fa0faf74cc2aa /server | |
parent | c24eec132c08d51a75b77c57cf4a3ae2bff13402 (diff) | |
download | lua-language-server-739d3da09872336e94a9295f3a5cee357da8e8f2.zip |
据说linux路径用的是正斜杠
Diffstat (limited to 'server')
-rw-r--r-- | server/src/glob/gitignore.lua | 2 | ||||
-rw-r--r-- | server/src/uri.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/glob/gitignore.lua b/server/src/glob/gitignore.lua index dd1d3c25..158db54f 100644 --- a/server/src/glob/gitignore.lua +++ b/server/src/glob/gitignore.lua @@ -172,7 +172,7 @@ function mt:scan(callback) for _, path in ipairs(result) do local filename = path:match '([^/\\]+)[/\\]*$' if filename then - list[#list+1] = current .. '\\' .. filename + list[#list+1] = current .. '/' .. filename end end end diff --git a/server/src/uri.lua b/server/src/uri.lua index b41bc1db..83dfbd41 100644 --- a/server/src/uri.lua +++ b/server/src/uri.lua @@ -20,7 +20,7 @@ local function decode(uri) return nil end -- 盘符后面加个斜杠 - local path = fs.path(names[1] .. '\\') + local path = fs.path(names[1] .. '/') for i = 2, #names do path = path / names[i] end |