summaryrefslogtreecommitdiff
path: root/server/locale/en-US/libs
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-09 10:26:07 +0800
committersumneko <sumneko@hotmail.com>2019-04-09 10:26:07 +0800
commitb9ef666714e03e2108f4b1f8c245e721dc4fb2fb (patch)
tree59f0acf90e62fb6ad6173a42d32764b79231ea26 /server/locale/en-US/libs
parentfd11589c1d5d32f85a9879fa008cb6b10798409a (diff)
downloadlua-language-server-b9ef666714e03e2108f4b1f8c245e721dc4fb2fb.zip
其他差异
Diffstat (limited to 'server/locale/en-US/libs')
-rw-r--r--server/locale/en-US/libs/lua/basic.lni8
-rw-r--r--server/locale/en-US/libs/lua/os.lni3
-rw-r--r--server/locale/en-US/libs/lua/package.lni3
-rw-r--r--server/locale/en-US/libs/lua/table.lni3
4 files changed, 17 insertions, 0 deletions
diff --git a/server/locale/en-US/libs/lua/basic.lni b/server/locale/en-US/libs/lua/basic.lni
index 9c982fbb..6a391cac 100644
--- a/server/locale/en-US/libs/lua/basic.lni
+++ b/server/locale/en-US/libs/lua/basic.lni
@@ -228,3 +228,11 @@ description = 'Calls function f with the given arguments in protected mode with
[require]
description = 'Loads the given module.'
+
+[unpack]
+description = [[
+-------
+```lua
+return list[i], list[i+1], ···, list[j]
+```
+]]
diff --git a/server/locale/en-US/libs/lua/os.lni b/server/locale/en-US/libs/lua/os.lni
index 7a4591a7..8be67434 100644
--- a/server/locale/en-US/libs/lua/os.lni
+++ b/server/locale/en-US/libs/lua/os.lni
@@ -10,6 +10,9 @@ description = 'Returns the difference, in seconds, from time `t1` to time `t2`.'
[execute]
description = 'Passes `command` to be executed by an operating system shell.'
+['execute Lua 5.1']
+description = 'Passes `command` to be executed by an operating system shell.'
+
[exit]
description = 'Calls the ISO C function `exit` to terminate the host program.'
diff --git a/server/locale/en-US/libs/lua/package.lni b/server/locale/en-US/libs/lua/package.lni
index 04a47011..b0a861a9 100644
--- a/server/locale/en-US/libs/lua/package.lni
+++ b/server/locale/en-US/libs/lua/package.lni
@@ -7,6 +7,9 @@ description = 'The path used by `require` to search for a C loader.'
[loaded]
description = 'A table used by `require` to control which modules are already loaded.'
+[loaders]
+description = 'A table used by `require` to control how to load modules.'
+
[loadlib]
description = 'Dynamically links the host program with the C library `libname`.'
diff --git a/server/locale/en-US/libs/lua/table.lni b/server/locale/en-US/libs/lua/table.lni
index 5f5454d3..d32ea4ae 100644
--- a/server/locale/en-US/libs/lua/table.lni
+++ b/server/locale/en-US/libs/lua/table.lni
@@ -9,6 +9,9 @@ return list[i]..sep..list[i+1] ··· sep..list[j]
[insert]
description = 'Inserts element `value` at position `pos` in `list`.'
+[maxn]
+description = 'Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.'
+
[move]
description = [[
Moves elements from table `a1` to table `a2`.