From 7c9503e0f1d2566a9a6df9f5c309af48972cabb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 7 Jul 2022 00:35:24 +0800 Subject: add meta file for `bee.filesystem` --- script/library.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'script/library.lua') diff --git a/script/library.lua b/script/library.lua index a2a1bb87..d0294650 100644 --- a/script/library.lua +++ b/script/library.lua @@ -214,7 +214,7 @@ local function initBuiltIn(uri) version = version, language = langID, encoding = encoding, - })--[[@as fspath]] + }) local metaLang = loadMetaLocale('en-US') if langID ~= 'en-US' then @@ -245,7 +245,7 @@ local function initBuiltIn(uri) end libName = libName .. '.lua' ---@type fspath - local libPath = templateDir / libName--[[@as fspath]] + local libPath = templateDir / libName local metaDoc = compileSingleMetaDoc(uri, fsu.loadFile(libPath), metaLang, status) if metaDoc then metaDoc = encoder.encode(encoding, metaDoc, 'auto') @@ -262,8 +262,9 @@ local function initBuiltIn(uri) end end +---@param libraryDir fspath local function loadSingle3rdConfig(libraryDir) - local configText = fsu.loadFile(libraryDir / 'config.lua'--[[@as fspath]]) + local configText = fsu.loadFile(libraryDir / 'config.lua') if not configText then return nil end -- cgit v1.2.3