diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-19 16:52:26 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-19 16:52:26 +0800 |
commit | c16e3da5a1f1944d4d2f7cea49bf05c20b9311ab (patch) | |
tree | 0c8bd6fe7d76bcfdd7aec956b5a3674bcaf4bd53 /server | |
parent | a455c8309a85c573066e233ef9cf8d9cae8836e6 (diff) | |
download | lua-language-server-c16e3da5a1f1944d4d2f7cea49bf05c20b9311ab.zip |
更新 warn
Diffstat (limited to 'server')
-rw-r--r-- | server/libs/@lua/basic.lni | 4 | ||||
-rw-r--r-- | server/locale/en-US/libs/@lua/basic.lni | 7 | ||||
-rw-r--r-- | server/locale/zh-CN/libs/@lua/basic.lni | 2 |
3 files changed, 3 insertions, 10 deletions
diff --git a/server/libs/@lua/basic.lni b/server/libs/@lua/basic.lni index 069bf0cd..beaa59db 100644 --- a/server/libs/@lua/basic.lni +++ b/server/libs/@lua/basic.lni @@ -494,9 +494,7 @@ version = 'Lua 5.4' name = 'message' type = 'string' `````````` -name = 'tocont' -type = 'boolean' -optional = 'after' +type = '...' [xpcall] special = xpcall diff --git a/server/locale/en-US/libs/@lua/basic.lni b/server/locale/en-US/libs/@lua/basic.lni index ccd1f05d..7dbf8d60 100644 --- a/server/locale/en-US/libs/@lua/basic.lni +++ b/server/locale/en-US/libs/@lua/basic.lni @@ -216,12 +216,7 @@ description = 'Running Lua version.' description = 'Running Lua version.' [warn] -description = [[ -Emits a warning with the given message. -A message in a call with `tocont` true should be -continued in another call to this function. -The default for `tocont` is false. -]] +description = 'Emits a warning with a message composed by the concatenation of all its arguments (which should be strings).' [xpcall] description = 'Calls function `f` with the given arguments in protected mode with a new message handler.' diff --git a/server/locale/zh-CN/libs/@lua/basic.lni b/server/locale/zh-CN/libs/@lua/basic.lni index 9415f3e8..d4b234b0 100644 --- a/server/locale/zh-CN/libs/@lua/basic.lni +++ b/server/locale/zh-CN/libs/@lua/basic.lni @@ -216,7 +216,7 @@ description = '当前解释器版本号。' description = '当前解释器版本号。' [warn] -description = '以给定消息发出一个警告。当`tocont`为 true 时,应当继续调用该函数来接续消息。`tocont`的默认值为 false 。' +description = '使用所有参数组成的字符串消息来发送警告。' [xpcall] description = '传入参数并设置一个消息处理器 `msgh`,以 *保护模式* 调用函数 `f` 。' |