diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-08 20:40:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-08 20:40:07 +0800 |
commit | 5fb8b3f591640b0702ce83cc9427da3fdcf118fb (patch) | |
tree | 02f84237fa5cd5015abeb0a16a06422d3510580d /make/bootstrap.lua | |
parent | bc3976210d46fc7187a00930b6761abad60cc967 (diff) | |
download | lua-language-server-5fb8b3f591640b0702ce83cc9427da3fdcf118fb.zip |
fix bootstrap
Diffstat (limited to 'make/bootstrap.lua')
-rw-r--r-- | make/bootstrap.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/make/bootstrap.lua b/make/bootstrap.lua index 2bbd64f0..77f1a4d0 100644 --- a/make/bootstrap.lua +++ b/make/bootstrap.lua @@ -24,8 +24,11 @@ end local root; do
local sep = package.config:sub(1,1)
+ if sep == '\\' then
+ sep = '/\\'
+ end
local pattern = "["..sep.."][^"..sep.."]+"
- root = package.cpath:match("(.+)"..pattern..pattern..pattern.."$")
+ root = package.cpath:match("([^;]+)"..pattern..pattern..pattern.."$")
end
local fs = require "bee.filesystem"
|