diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-04-05 12:26:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-04-05 12:26:44 +0800 |
commit | 4f94d3500d6d7b6d082647359011d2ca103741db (patch) | |
tree | 10ab0e987ba03431aacbf0e6f0bebfdeb1d0f456 /server/locale/zh-CN/libs/lua/io.lni | |
parent | da00d824100381c52a81b9e6f1d824e6b344755d (diff) | |
download | lua-language-server-4f94d3500d6d7b6d082647359011d2ca103741db.zip |
一些API更新与翻译
Diffstat (limited to 'server/locale/zh-CN/libs/lua/io.lni')
-rw-r--r-- | server/locale/zh-CN/libs/lua/io.lni | 57 |
1 files changed, 55 insertions, 2 deletions
diff --git a/server/locale/zh-CN/libs/lua/io.lni b/server/locale/zh-CN/libs/lua/io.lni index a35fa0ae..4a8a72a0 100644 --- a/server/locale/zh-CN/libs/lua/io.lni +++ b/server/locale/zh-CN/libs/lua/io.lni @@ -16,7 +16,37 @@ description = '将写入的数据保存到默认输出文件中。' [input] description = '设置 `file` 为默认输入文件。' -[lines] +["lines Lua 5.1"] +description = [[ +------ +```lua +for c in io.lines(filename, ...) do + body +end +``` +]] +[[.enums]] +name = 'mode' +enum = '*n' +description = '读取一个数字,根据 Lua 的转换文法返回浮点数或整数。' +`````````` +name = 'mode' +enum = '*a' +description = '从当前位置开始读取整个文件。' +`````````` +name = 'mode' +enum = '*l' +description = '读取一行并忽略行结束标记。' +`````````` +name = 'mode' +enum = '*L' +description = '读取一行并保留行结束标记。' +`````````` +name = 'mode' +code = 'number' +description = '读取一个不超过这个数量字节数的字符串。' + +["lines Lua 5.3"] description = [[ ------ ```lua @@ -87,7 +117,30 @@ name = 'mode' enum = 'w' description = '向这个程序写入输入。' -[read] +["read Lua 5.1"] +description = '读文件 `file`, 指定的格式决定了要读什么。' +[[.enums]] +name = 'mode' +enum = '*n' +description = '读取一个数字,根据 Lua 的转换文法返回浮点数或整数。' +`````````` +name = 'mode' +enum = '*a' +description = '从当前位置开始读取整个文件。' +`````````` +name = 'mode' +enum = '*l' +description = '读取一行并忽略行结束标记。' +`````````` +name = 'mode' +enum = '*L' +description = '读取一行并保留行结束标记。' +`````````` +name = 'mode' +code = 'number' +description = '读取一个不超过这个数量字节数的字符串。' + +["read Lua 5.3"] description = '读文件 `file`, 指定的格式决定了要读什么。' [[.enums]] name = 'mode' |