summaryrefslogtreecommitdiff
path: root/server/libs
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-17 18:45:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-17 18:45:28 +0800
commitb62c75955ffec65eda858d6f397fd02d3d1f275c (patch)
treef2e0bbc9e08cc54245460137dd1dc2feeb8f5132 /server/libs
parentae7510e8d1b7398f93ee4a1198eed154822d594d (diff)
downloadlua-language-server-b62c75955ffec65eda858d6f397fd02d3d1f275c.zip
更新库
Diffstat (limited to 'server/libs')
-rw-r--r--server/libs/lua53/io.lni24
1 files changed, 9 insertions, 15 deletions
diff --git a/server/libs/lua53/io.lni b/server/libs/lua53/io.lni
index a5325cd4..d34b78b9 100644
--- a/server/libs/lua53/io.lni
+++ b/server/libs/lua53/io.lni
@@ -32,7 +32,7 @@ optional = 'self'
[[.returns]]
name = 'suc'
type = 'boolean'
-default = 'true'
+default = true
optional = 'after'
[[.returns]]
name = 'type'
@@ -55,6 +55,7 @@ type = {'string', 'FILE*'}
optional = 'self'
[[.returns]]
type = 'FILE*'
+optional = 'self'
[lines]
[[.args]]
@@ -64,7 +65,6 @@ optional = 'after'
[[.args]]
name = 'mode'
type = '...'
-default = 'l'
[[.returns]]
type = 'function'
returns = {
@@ -78,16 +78,11 @@ name = 'mode'
enum = 'n'
[[.enums]]
name = 'mode'
-enum = 'n'
-[[.enums]]
-name = 'mode'
-enum = 'i'
-[[.enums]]
-name = 'mode'
enum = 'a'
[[.enums]]
name = 'mode'
enum = 'l'
+default = true
[[.enums]]
name = 'mode'
enum = 'L'
@@ -109,6 +104,7 @@ type = 'FILE*'
[[.enums]]
name = 'mode'
enum = 'r'
+default = true
[[.enums]]
name = 'mode'
enum = 'w'
@@ -136,9 +132,13 @@ name = 'mode'
type = 'string'
optional = 'self'
default = 'r'
+[[.returns]]
+name = 'file'
+type = 'FILE*'
[[.enums]]
name = 'mode'
enum = 'r'
+default = true
[[.enums]]
name = 'mode'
enum = 'w'
@@ -147,7 +147,6 @@ enum = 'w'
[[.args]]
name = 'mode'
type = '...'
-default = 'l'
[[.returns]]
type = {'string', 'number'}
[[.enums]]
@@ -155,16 +154,11 @@ name = 'mode'
enum = 'n'
[[.enums]]
name = 'mode'
-enum = 'n'
-[[.enums]]
-name = 'mode'
-enum = 'i'
-[[.enums]]
-name = 'mode'
enum = 'a'
[[.enums]]
name = 'mode'
enum = 'l'
+default = true
[[.enums]]
name = 'mode'
enum = 'L'