diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-22 23:26:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-22 23:26:32 +0800 |
commit | d0ff66c9abe9d6abbca12fd811e0c3cb69c1033a (patch) | |
tree | bb34518d70b85de7656dbdbe958dfa221a3ff3b3 /locale/en-US/libs/@lua/file.lni | |
parent | 0a2c2ad15e1ec359171fb0dd4c72e57c5b66e9ba (diff) | |
download | lua-language-server-d0ff66c9abe9d6abbca12fd811e0c3cb69c1033a.zip |
整理一下目录结构
Diffstat (limited to 'locale/en-US/libs/@lua/file.lni')
-rw-r--r-- | locale/en-US/libs/@lua/file.lni | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/locale/en-US/libs/@lua/file.lni b/locale/en-US/libs/@lua/file.lni new file mode 100644 index 00000000..58bb2278 --- /dev/null +++ b/locale/en-US/libs/@lua/file.lni @@ -0,0 +1,91 @@ +[close] +description = 'Close `file`.' + +[flush] +description = 'Saves any written data to `file`.' + +[lines] +description = [[ +------ +```lua +for c in file:lines(...) do + body +end +``` +]] +[[.enums]] +name = 'mode' +enum = '"n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +[read] +description = 'Reads the `file`, according to the given formats, which specify what to read.' +[[.enums]] +name = 'mode' +enum = '"n"' +description = 'Reads a numeral and returns it as number.' +`````````` +name = 'mode' +enum = '"a"' +description = 'Reads the whole file.' +`````````` +name = 'mode' +enum = '"l"' +description = 'Reads the next line skipping the end of line.' +`````````` +name = 'mode' +enum = '"L"' +description = 'Reads the next line keeping the end of line.' +`````````` +name = 'mode' +code = 'number' +description = 'Reads a string with up to this number of bytes.' + +[seek] +description = 'Sets and gets the file position, measured from the beginning of the file.' +[[.enums]] +name = 'whence' +enum = '"set"' +description = 'Base is beginning of the file.' +`````````` +name = 'whence' +enum = '"cur"' +description = 'Base is current position.' +`````````` +name = 'whence' +enum = '"end"' +description = 'Base is end of file.' + +[setvbuf] +description = 'Sets the buffering mode for an output file.' +[[.enums]] +name = 'mode' +enum = '"no"' +description = 'Output operation appears immediately.' +`````````` +name = 'mode' +enum = '"full"' +description = 'Performed only when the buffer is full.' +`````````` +name = 'mode' +enum = '"line"' +description = 'Buffered until a newline is output.' + +[write] +description = 'Writes the value of each of its arguments to `file`.' |