summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-10 20:09:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-10 20:09:03 +0800
commitf9c1fa8e5cef71e2ee6810d863dd99fc65cf7b1a (patch)
treec2b07533aef90d1ebf0a28ac8a0691d817c05958
parent6c4df5860bfc6e1f011dbfebaaad4ef63bd2a542 (diff)
downloadlua-language-server-f9c1fa8e5cef71e2ee6810d863dd99fc65cf7b1a.zip
更新 io.open io.popen
-rw-r--r--libs/@lua/io.lni32
1 files changed, 29 insertions, 3 deletions
diff --git a/libs/@lua/io.lni b/libs/@lua/io.lni
index 00e8c9c8..96586feb 100644
--- a/libs/@lua/io.lni
+++ b/libs/@lua/io.lni
@@ -173,7 +173,11 @@ type = 'string'
optional = 'self'
default = 'r'
[[.returns]]
-type = 'FILE*'
+type = {'FILE*', 'nil'}
+``````````
+name = 'error_message'
+type = 'string'
+optional = 'self'
[[.enums]]
name = 'mode'
enum = '"r"'
@@ -193,6 +197,25 @@ enum = '"w+"'
``````````
name = 'mode'
enum = '"a+"'
+``````````
+name = 'mode'
+enum = '"rb"'
+default = true
+``````````
+name = 'mode'
+enum = '"wb"'
+``````````
+name = 'mode'
+enum = '"ab"'
+``````````
+name = 'mode'
+enum = '"r+b"'
+``````````
+name = 'mode'
+enum = '"w+b"'
+``````````
+name = 'mode'
+enum = '"a+b"'
[output:input]
@@ -206,8 +229,11 @@ type = 'string'
optional = 'self'
default = 'r'
[[.returns]]
-name = 'file'
-type = 'FILE*'
+type = {'FILE*', 'nil'}
+``````````
+name = 'error_message'
+type = 'string'
+optional = 'self'
[[.enums]]
name = 'mode'
enum = '"r"'