summaryrefslogtreecommitdiff
path: root/server/locale
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-09 11:21:52 +0800
committersumneko <sumneko@hotmail.com>2019-04-09 11:21:52 +0800
commit41aec953bfa0f584ceb8de7c2f6203cb2075a215 (patch)
tree1148d9f97833966f855118f3895aa73f4b11deba /server/locale
parentb9ef666714e03e2108f4b1f8c245e721dc4fb2fb (diff)
downloadlua-language-server-41aec953bfa0f584ceb8de7c2f6203cb2075a215.zip
实现 module 与 package.seeall
Diffstat (limited to 'server/locale')
-rw-r--r--server/locale/en-US/libs/lua/coroutine.lni3
-rw-r--r--server/locale/en-US/libs/lua/package.lni3
-rw-r--r--server/locale/zh-CN/libs/lua/debug.lni3
-rw-r--r--server/locale/zh-CN/libs/lua/math.lni4
-rw-r--r--server/locale/zh-CN/libs/lua/package.lni3
5 files changed, 10 insertions, 6 deletions
diff --git a/server/locale/en-US/libs/lua/coroutine.lni b/server/locale/en-US/libs/lua/coroutine.lni
index ec06f21d..3859ad4e 100644
--- a/server/locale/en-US/libs/lua/coroutine.lni
+++ b/server/locale/en-US/libs/lua/coroutine.lni
@@ -5,8 +5,7 @@ description = 'Creates a new coroutine.'
description = 'Returns true when the running coroutine can yield.'
[kill]
-description = 'Kills coroutine `co` ,
-closing all its pending to-be-closed variables and putting the coroutine in a dead state.'
+description = 'Kills coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.'
[resume]
description = 'Starts or continues the execution of coroutine `co`.'
diff --git a/server/locale/en-US/libs/lua/package.lni b/server/locale/en-US/libs/lua/package.lni
index b0a861a9..3b482ae9 100644
--- a/server/locale/en-US/libs/lua/package.lni
+++ b/server/locale/en-US/libs/lua/package.lni
@@ -24,3 +24,6 @@ description = 'A table used by `require` to control how to load modules.'
[searchpath]
description = 'Searches for the given `name` in the given `path`.'
+
+[seeall]
+describing = 'Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .
diff --git a/server/locale/zh-CN/libs/lua/debug.lni b/server/locale/zh-CN/libs/lua/debug.lni
index 18c514c9..22e6d3b3 100644
--- a/server/locale/zh-CN/libs/lua/debug.lni
+++ b/server/locale/zh-CN/libs/lua/debug.lni
@@ -2,7 +2,7 @@
description = '进入一个用户交互模式,运行用户输入的每个字符串。'
[getfenv]
-description = '返回对象 `o` 的环境。`
+description = '返回对象 `o` 的环境。'
[gethook]
description = '返回三个表示线程钩子设置的值: 当前钩子函数,当前钩子掩码,当前钩子计数 。'
@@ -85,7 +85,6 @@ description = '将 `value` 设为函数 `f` 的第 `up` 个上值。'
["setuservalue Lua 5.4"]
description = '将 `value` 设为 `udata` 的第 `n` 个关联值。'
-值。'
[setuservalue]
description = '将 `value` 设为 `udata` 的关联值。'
diff --git a/server/locale/zh-CN/libs/lua/math.lni b/server/locale/zh-CN/libs/lua/math.lni
index 2f42b9e8..f1a6768a 100644
--- a/server/locale/zh-CN/libs/lua/math.lni
+++ b/server/locale/zh-CN/libs/lua/math.lni
@@ -50,10 +50,10 @@ description = '返回 `m * (2 ^ e)` 。'
description = '返回以指定底的 `x` 的对数。'
['log Lua 5.1']
-description = '返回 `x` 的自然对数。`
+description = '返回 `x` 的自然对数。'
[log10]
-description = '返回 `x` 的以10为底的对数。
+description = '返回 `x` 的以10为底的对数。'
[max]
description = '返回参数中最大的值, 大小由 Lua 操作 `<` 决定。'
diff --git a/server/locale/zh-CN/libs/lua/package.lni b/server/locale/zh-CN/libs/lua/package.lni
index 74dc0239..209a9dc1 100644
--- a/server/locale/zh-CN/libs/lua/package.lni
+++ b/server/locale/zh-CN/libs/lua/package.lni
@@ -24,3 +24,6 @@ description = '用于 `require` 控制如何加载模块的表。'
[searchpath]
description = '在指定 `path` 中搜索指定的 `name` 。'
+
+[seeall]
+description = '给 `module` 设置一个元表,该元表的 `__index` 域为全局环境,这样模块便会继承全局环境的值。可作为 `module` 函数的选项。'