diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 10:46:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-26 10:46:01 +0800 |
commit | 48e0f29dc8b8f0f144e683c6df24f6f0bbabcee5 (patch) | |
tree | de9aacdf17a13f111471c5e1f6b906f62c6ba4fc | |
parent | e9bb594f37a5f28a984a81211d572c39aa68b728 (diff) | |
download | lua-language-server-48e0f29dc8b8f0f144e683c6df24f6f0bbabcee5.zip |
漏掉的描述
-rw-r--r-- | server/libs/lua53/os.lni | 2 | ||||
-rw-r--r-- | server/locale/en-US/libs/lua53/os.lni | 33 |
2 files changed, 33 insertions, 2 deletions
diff --git a/server/libs/lua53/os.lni b/server/libs/lua53/os.lni index e889bf2a..f13c83b6 100644 --- a/server/libs/lua53/os.lni +++ b/server/libs/lua53/os.lni @@ -116,13 +116,13 @@ type = 'string' name = 'category' type = 'string' optional = 'self' -default = 'all' [[.returns]] name = 'locale' type = 'string' [[.enums]] name = 'category' enum = 'all' +default = true [[.enums]] name = 'category' enum = 'collate' diff --git a/server/locale/en-US/libs/lua53/os.lni b/server/locale/en-US/libs/lua53/os.lni index 5cecc8d8..7a4591a7 100644 --- a/server/locale/en-US/libs/lua53/os.lni +++ b/server/locale/en-US/libs/lua53/os.lni @@ -1 +1,32 @@ -[os] +[clock] +description = 'Returns an approximation of the amount in seconds of CPU time used by the program.' + +[data] +description = 'Returns a string or a table containing date and time, formatted according to the given string `format`.' + +[difftime] +description = 'Returns the difference, in seconds, from time `t1` to time `t2`.' + +[execute] +description = 'Passes `command` to be executed by an operating system shell.' + +[exit] +description = 'Calls the ISO C function `exit` to terminate the host program.' + +[getenv] +description = 'Returns the value of the process environment variable `varname`.' + +[remove] +description = 'Deletes the file with the given name.' + +[rename] +description = 'Renames the file or directory named `oldname` to `newname`.' + +[setlocale] +description = 'Sets the current locale of the program.' + +[time] +description = 'Returns the current time when called without arguments, or a time representing the local date and time specified by the given table.' + +[tmpname] +description = 'Returns a string with a file name that can be used for a temporary file.' |