diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-31 13:14:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-31 13:14:49 +0800 |
commit | 128584e0d91098f8a0d3c6bc48dc529e59d5d1e4 (patch) | |
tree | 99b7d329a33167e3b92605c2fdfd9072dee89a01 /server/libs/lua/file.lni | |
parent | f8516effb5ca8e151f4c4eb45f8d97b273c9d922 (diff) | |
download | lua-language-server-128584e0d91098f8a0d3c6bc48dc529e59d5d1e4.zip |
修改目录名
Diffstat (limited to 'server/libs/lua/file.lni')
-rw-r--r-- | server/libs/lua/file.lni | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/server/libs/lua/file.lni b/server/libs/lua/file.lni new file mode 100644 index 00000000..889cbf2d --- /dev/null +++ b/server/libs/lua/file.lni @@ -0,0 +1,151 @@ +<default> +type = 'function' +parent = { + 1 = { + type = 'object', + name = 'FILE*', + }, +} + +[close] +[[.args]] +type = 'FILE*' +[[.returns]] +name = 'suc' +type = 'boolean' +default = true +optional = 'after' +`````````` +name = 'type' +type = 'string' +`````````` +name = 'code' +[[.enums]] +type = 'type' +enum = 'exit' +`````````` +type = 'type' +enum = 'signal' + +[flush] +[[.args]] +type = 'FILE*' + +[lines] +[[.args]] +type = 'FILE*' +`````````` +name = 'mode' +type = '...' +[[.returns]] +type = 'function' +returns = { + 1 = { + name = 'c', + type = {'string', 'number'}, + } +} +[[.enums]] +name = 'mode' +enum = 'n' +`````````` +name = 'mode' +enum = 'a' +`````````` +name = 'mode' +enum = 'l' +default = true +`````````` +name = 'mode' +enum = 'L' +`````````` +name = 'mode' +code = 'number' + +[read] +[[.args]] +type = 'FILE*' +`````````` +name = 'mode' +type = '...' +[[.returns]] +type = {'string', 'number'} +`````````` +type = '...' +[[.enums]] +name = 'mode' +enum = 'n' +`````````` +name = 'mode' +enum = 'a' +`````````` +name = 'mode' +enum = 'l' +default = true +`````````` +name = 'mode' +enum = 'L' +`````````` +name = 'mode' +code = 'number' + +[seek] +[[.args]] +type = 'FILE*' +`````````` +name = 'whence' +type = 'string' +optional = 'after' +`````````` +name = 'offset' +type = 'integer' +default = 0 +optional = 'self' +[[.returns]] +name = 'offset' +type = 'integer' +`````````` +name = 'errmsg' +type = 'string' +optional = 'self' +[[.enums]] +name = 'whence' +enum = 'set' +`````````` +name = 'whence' +enum = 'cur' +default = true +`````````` +name = 'whence' +enum = 'end' + +[setvbuf] +[[.args]] +type = 'FILE*' +`````````` +name = 'mode' +type = 'string' +`````````` +name = 'size' +type = 'integer' +[[.enums]] +name = 'mode' +enum = 'no' +`````````` +name = 'mode' +enum = 'full' +`````````` +name = 'mode' +enum = 'line' + +[write] +[[.args]] +type = 'FILE*' +`````````` +type = '...' +[[.returns]] +type = 'FILE*' +`````````` +name = 'errmsg' +type = 'string' +optional = 'self' |