summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-21 02:17:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-21 02:17:03 +0800
commitcc6142db768430288fa71e144ba479a7a0e6e420 (patch)
treefced594142003b93cee54db2e4a2f5453d496bff /script
parentc2cf059ec21bb1076913bb99132d1f1cabf00d67 (diff)
downloadlua-language-server-cc6142db768430288fa71e144ba479a7a0e6e420.zip
fix #1077 did not find language id
Diffstat (limited to 'script')
-rw-r--r--script/language.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/language.lua b/script/language.lua
index 771dc948..22546fb8 100644
--- a/script/language.lua
+++ b/script/language.lua
@@ -6,7 +6,9 @@ local function supportLanguage()
local list = {}
for path in fs.pairs(ROOT / 'locale') do
if fs.is_directory(path) then
- list[#list+1] = path:filename():string():lower()
+ local id = path:filename():string():lower()
+ list[#list+1] = id
+ list[id] = true
end
end
return list