summaryrefslogtreecommitdiff
path: root/script/library.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/library.lua')
-rw-r--r--script/library.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/library.lua b/script/library.lua
index c7b9ea9a..57e77988 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -209,6 +209,7 @@ local function initBuiltIn(uri)
local langID = lang.id
local version = config.get(uri, 'Lua.runtime.version')
local encoding = config.get(uri, 'Lua.runtime.fileEncoding')
+ ---@type fspath
local metaPath = fs.path(METAPATH) / config.get(uri, 'Lua.runtime.meta'):gsub('%$%{(.-)%}', {
version = version,
language = langID,
@@ -243,6 +244,7 @@ local function initBuiltIn(uri)
goto CONTINUE
end
libName = libName .. '.lua'
+ ---@type fspath
local libPath = templateDir / libName
local metaDoc = compileSingleMetaDoc(uri, fsu.loadFile(libPath), metaLang, status)
if metaDoc then
@@ -261,7 +263,7 @@ local function initBuiltIn(uri)
end
local function loadSingle3rdConfig(libraryDir)
- local configText = fsu.loadFile(libraryDir / 'config.lua')
+ local configText = fsu.loadFile(libraryDir / 'config.lua'--[[@as fspath]])
if not configText then
return nil
end