diff options
Diffstat (limited to 'meta/template')
-rw-r--r-- | meta/template/bit32.lua | 2 | ||||
-rw-r--r-- | meta/template/coroutine.lua | 2 | ||||
-rw-r--r-- | meta/template/debug.lua | 2 | ||||
-rw-r--r-- | meta/template/file.lua | 2 | ||||
-rw-r--r-- | meta/template/io.lua | 28 | ||||
-rw-r--r-- | meta/template/math.lua | 2 | ||||
-rw-r--r-- | meta/template/os.lua | 2 | ||||
-rw-r--r-- | meta/template/package.lua | 2 | ||||
-rw-r--r-- | meta/template/string.lua | 2 | ||||
-rw-r--r-- | meta/template/table.lua | 1 | ||||
-rw-r--r-- | meta/template/utf8.lua | 2 |
11 files changed, 24 insertions, 23 deletions
diff --git a/meta/template/bit32.lua b/meta/template/bit32.lua index 636abf20..e45644a3 100644 --- a/meta/template/bit32.lua +++ b/meta/template/bit32.lua @@ -1,6 +1,6 @@ ---@meta ----@class bit32 +---@class bit32* bit32 = {} ---@param x integer diff --git a/meta/template/coroutine.lua b/meta/template/coroutine.lua index 013b883f..04b1a477 100644 --- a/meta/template/coroutine.lua +++ b/meta/template/coroutine.lua @@ -1,6 +1,6 @@ ---@meta ----@class coroutine +---@class coroutine* coroutine = {} ---@param f function diff --git a/meta/template/debug.lua b/meta/template/debug.lua index 94b9af49..87f9c118 100644 --- a/meta/template/debug.lua +++ b/meta/template/debug.lua @@ -1,6 +1,6 @@ ---@meta ----@class debug +---@class debug* debug = {} ---@class debuginfo diff --git a/meta/template/file.lua b/meta/template/file.lua index 763ae3ed..002db560 100644 --- a/meta/template/file.lua +++ b/meta/template/file.lua @@ -1,6 +1,6 @@ ---@meta ----@class file +---@class file* local file = {} ---@alias readmode number diff --git a/meta/template/io.lua b/meta/template/io.lua index 1576c2b6..4adb252a 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -1,9 +1,9 @@ ---@meta ----@class io ----@field stdin file ----@field stdout file ----@field stderr file +---@class io* +---@field stdin file* +---@field stdout file* +---@field stderr file* io = {} ---@alias openmode @@ -20,7 +20,7 @@ io = {} ---| '"w+b"' ---| '"a+b"' ----@param file file? +---@param file file*? ---@return boolean suc? ---@return exitcode exitcode? ---@return integer code? @@ -28,8 +28,8 @@ function io.close(file) end function io.flush() end ----@overload fun():file ----@param file string|file +---@overload fun():file* +---@param file string|file* function io.input(file) end ---@param filename string? @@ -39,12 +39,12 @@ function io.lines(filename, ...) end ---@param filename string ---@param mode openmode ----@return file? +---@return file*? ---@return string errmsg? function io.open(filename, mode) end ----@overload fun():file ----@param file string|file +---@overload fun():file* +---@param file string|file* function io.output(file) end ---@alias popenmode @@ -53,7 +53,7 @@ function io.output(file) end ---@param prog string ---@param mode popenmode? ----@return file? +---@return file*? ---@return string errmsg? function io.popen(prog, mode) end @@ -62,18 +62,18 @@ function io.popen(prog, mode) end ---@return ... function io.read(...) end ----@return file +---@return file* function io.tmpfile() end ---@alias filetype ---| '"file"' ---| '"closed file"' ---| 'nil' ----@param file file +---@param file file* ---@return filetype function io.type(file) end ----@return file +---@return file* ---@return string errmsg? function io.write(...) end diff --git a/meta/template/math.lua b/meta/template/math.lua index 39f2cbe7..ad008b0e 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -1,6 +1,6 @@ ---@meta ----@class math +---@class math* ---@field huge number ---@field maxinteger integer ---@field mininteger integer diff --git a/meta/template/os.lua b/meta/template/os.lua index e2694372..aabd9fc2 100644 --- a/meta/template/os.lua +++ b/meta/template/os.lua @@ -1,6 +1,6 @@ ---@meta ----@class os +---@class os* os = {} ---@return number diff --git a/meta/template/package.lua b/meta/template/package.lua index a7be0599..db9ec830 100644 --- a/meta/template/package.lua +++ b/meta/template/package.lua @@ -1,6 +1,6 @@ ---@meta ----@class package +---@class package* ---@field conifg string ---@field cpath string ---@field loaded table diff --git a/meta/template/string.lua b/meta/template/string.lua index 54891666..04a58456 100644 --- a/meta/template/string.lua +++ b/meta/template/string.lua @@ -1,6 +1,6 @@ ---@meta ----@class string +---@class string* string = {} ---@param s string diff --git a/meta/template/table.lua b/meta/template/table.lua index 1cb2de96..7e77fc36 100644 --- a/meta/template/table.lua +++ b/meta/template/table.lua @@ -1,5 +1,6 @@ ---@meta +---@class table* table = {} ---@param list table diff --git a/meta/template/utf8.lua b/meta/template/utf8.lua index 52bea1cc..4ce0690a 100644 --- a/meta/template/utf8.lua +++ b/meta/template/utf8.lua @@ -1,6 +1,6 @@ ---@meta ----@class utf8 +---@class utf8* ---@field charpattern string utf8 = {} |