summaryrefslogtreecommitdiff
path: root/server/locale/en-US/libs/@lua/file.lni
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-09 14:04:36 +0800
committersumneko <sumneko@hotmail.com>2019-04-09 14:04:36 +0800
commit264e332acd1dbfb91c3f6633f6b48f3e4119f832 (patch)
tree7a5f78d6ed49f07cf1932550964532cccfc3f0ad /server/locale/en-US/libs/@lua/file.lni
parent96647a35c6977909df5d6c5f7e77d0a4a2dbe2c0 (diff)
downloadlua-language-server-264e332acd1dbfb91c3f6633f6b48f3e4119f832.zip
不要加载自定义库中的全局变量
Diffstat (limited to 'server/locale/en-US/libs/@lua/file.lni')
-rw-r--r--server/locale/en-US/libs/@lua/file.lni91
1 files changed, 91 insertions, 0 deletions
diff --git a/server/locale/en-US/libs/@lua/file.lni b/server/locale/en-US/libs/@lua/file.lni
new file mode 100644
index 00000000..4200b65f
--- /dev/null
+++ b/server/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`.'