diff options
Diffstat (limited to 'locale/en-us')
-rw-r--r-- | locale/en-us/meta.lua | 816 | ||||
-rw-r--r-- | locale/en-us/script.lua | 723 | ||||
-rw-r--r-- | locale/en-us/setting.lua | 266 |
3 files changed, 1204 insertions, 601 deletions
diff --git a/locale/en-us/meta.lua b/locale/en-us/meta.lua index 739781ca..858cde13 100644 --- a/locale/en-us/meta.lua +++ b/locale/en-us/meta.lua @@ -1,55 +1,84 @@ ---@diagnostic disable: undefined-global, lowercase-global -- basic -arg = 'Command-line arguments of Lua Standalone.' -assert = 'Raises an error if the value of its argument v is false (i.e., `nil` or `false`); otherwise, returns all its arguments. In case of error, `message` is the error object; when absent, it defaults to `"assertion failed!"`' -cgopt.collect = 'Performs a full garbage-collection cycle.' -cgopt.stop = 'Stops automatic execution.' -cgopt.restart = 'Restarts automatic execution.' -cgopt.count = 'Returns the total memory in Kbytes.' -cgopt.step = 'Performs a garbage-collection step.' -cgopt.setpause = 'Set `pause`.' -cgopt.setstepmul = 'Set `step multiplier`.' -cgopt.incremental = 'Change the collector mode to incremental.' -cgopt.generational = 'Change the collector mode to generational.' -cgopt.isrunning = 'Returns whether the collector is running.' -collectgarbage = 'This function is a generic interface to the garbage collector. It performs different functions according to its first argument, `opt`.' -dofile = 'Opens the named file and executes its content as a Lua chunk. When called without arguments, `dofile` executes the content of the standard input (`stdin`). Returns all values returned by the chunk. In case of errors, `dofile` propagates the error to its caller. (That is, `dofile` does not run in protected mode.)' -error = [[ +arg = +'Command-line arguments of Lua Standalone.' +assert = +'Raises an error if the value of its argument v is false (i.e., `nil` or `false`); otherwise, returns all its arguments. In case of error, `message` is the error object; when absent, it defaults to `"assertion failed!"`' +cgopt.collect = +'Performs a full garbage-collection cycle.' +cgopt.stop = +'Stops automatic execution.' +cgopt.restart = +'Restarts automatic execution.' +cgopt.count = +'Returns the total memory in Kbytes.' +cgopt.step = +'Performs a garbage-collection step.' +cgopt.setpause = +'Set `pause`.' +cgopt.setstepmul = +'Set `step multiplier`.' +cgopt.incremental = +'Change the collector mode to incremental.' +cgopt.generational = +'Change the collector mode to generational.' +cgopt.isrunning = +'Returns whether the collector is running.' +collectgarbage = +'This function is a generic interface to the garbage collector. It performs different functions according to its first argument, `opt`.' +dofile = +'Opens the named file and executes its content as a Lua chunk. When called without arguments, `dofile` executes the content of the standard input (`stdin`). Returns all values returned by the chunk. In case of errors, `dofile` propagates the error to its caller. (That is, `dofile` does not run in protected mode.)' +error = +[[ Terminates the last protected function called and returns message as the error object. Usually, `error` adds some information about the error position at the beginning of the message, if the message is a string. ]] -_G = 'A global variable (not a function) that holds the global environment (see §2.2). Lua itself does not use this variable; changing its value does not affect any environment, nor vice versa.' -getfenv = 'Returns the current environment in use by the function. `f` can be a Lua function or a number that specifies the function at that stack level.' -getmetatable = 'If object does not have a metatable, returns nil. Otherwise, if the object\'s metatable has a __metatable field, returns the associated value. Otherwise, returns the metatable of the given object.' -ipairs = [[ +_G = +'A global variable (not a function) that holds the global environment (see §2.2). Lua itself does not use this variable; changing its value does not affect any environment, nor vice versa.' +getfenv = +'Returns the current environment in use by the function. `f` can be a Lua function or a number that specifies the function at that stack level.' +getmetatable = +'If object does not have a metatable, returns nil. Otherwise, if the object\'s metatable has a __metatable field, returns the associated value. Otherwise, returns the metatable of the given object.' +ipairs = +[[ Returns three values (an iterator function, the table `t`, and `0`) so that the construction ```lua for i,v in ipairs(t) do body end ``` will iterate over the key–value pairs `(1,t[1]), (2,t[2]), ...`, up to the first absent index. ]] -loadmode.b = 'Only binary chunks.' -loadmode.t = 'Only text chunks.' -loadmode.bt = 'Both binary and text.' -load['<5.1'] = 'Loads a chunk using function `func` to get its pieces. Each call to `func` must return a string that concatenates with previous results.' -load['>5.2'] = [[ +loadmode.b = +'Only binary chunks.' +loadmode.t = +'Only text chunks.' +loadmode.bt = +'Both binary and text.' +load['<5.1'] = +'Loads a chunk using function `func` to get its pieces. Each call to `func` must return a string that concatenates with previous results.' +load['>5.2'] = +[[ Loads a chunk. If `chunk` is a string, the chunk is this string. If `chunk` is a function, `load` calls it repeatedly to get the chunk pieces. Each call to `chunk` must return a string that concatenates with previous results. A return of an empty string, `nil`, or no value signals the end of the chunk. ]] -loadfile = 'Loads a chunk from file `filename` or from the standard input, if no file name is given.' -loadstring = 'Loads a chunk from the given string.' -module = 'Creates a module.' -next = [[ +loadfile = +'Loads a chunk from file `filename` or from the standard input, if no file name is given.' +loadstring = +'Loads a chunk from the given string.' +module = +'Creates a module.' +next = +[[ Allows a program to traverse all fields of a table. Its first argument is a table and its second argument is an index in this table. A call to `next` returns the next index of the table and its associated value. When called with `nil` as its second argument, `next` returns an initial index and its associated value. When called with the last index, or with `nil` in an empty table, `next` returns `nil`. If the second argument is absent, then it is interpreted as `nil`. In particular, you can use `next(t)` to check whether a table is empty. The order in which the indices are enumerated is not specified, *even for numeric indices*. (To traverse a table in numerical order, use a numerical `for`.) The behavior of `next` is undefined if, during the traversal, you assign any value to a non-existent field in the table. You may however modify existing fields. In particular, you may set existing fields to nil. ]] -pairs = [[ +pairs = +[[ If `t` has a metamethod `__pairs`, calls it with t as argument and returns the first three results from the call. Otherwise, returns three values: the $next function, the table `t`, and `nil`, so that the construction @@ -60,160 +89,246 @@ will iterate over all key–value pairs of table `t`. See function $next for the caveats of modifying the table during its traversal. ]] -pcall = [[ +pcall = +[[ Calls the function `f` with the given arguments in *protected mode*. This means that any error inside `f` is not propagated; instead, `pcall` catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, `pcall` also returns all results from the call, after this first result. In case of any error, `pcall` returns `false` plus the error object. ]] -print = [[ +print = +[[ Receives any number of arguments and prints their values to `stdout`, converting each argument to a string following the same rules of $tostring. The function print is not intended for formatted output, but only as a quick way to show a value, for instance for debugging. For complete control over the output, use $string.format and $io.write. ]] -rawequal = 'Checks whether v1 is equal to v2, without invoking the `__eq` metamethod.' -rawget = 'Gets the real value of `table[index]`, without invoking the `__index` metamethod.' -rawlen = 'Returns the length of the object `v`, without invoking the `__len` metamethod.' -rawset = [[ +rawequal = +'Checks whether v1 is equal to v2, without invoking the `__eq` metamethod.' +rawget = +'Gets the real value of `table[index]`, without invoking the `__index` metamethod.' +rawlen = +'Returns the length of the object `v`, without invoking the `__len` metamethod.' +rawset = +[[ Sets the real value of `table[index]` to `value`, without using the `__newindex` metavalue. `table` must be a table, `index` any value different from `nil` and `NaN`, and `value` any Lua value. This function returns `table`. ]] -select = 'If `index` is a number, returns all arguments after argument number `index`; a negative number indexes from the end (`-1` is the last argument). Otherwise, `index` must be the string `"#"`, and `select` returns the total number of extra arguments it received.' -setfenv = 'Sets the environment to be used by the given function. ' -setmetatable = [[ +select = +'If `index` is a number, returns all arguments after argument number `index`; a negative number indexes from the end (`-1` is the last argument). Otherwise, `index` must be the string `"#"`, and `select` returns the total number of extra arguments it received.' +setfenv = +'Sets the environment to be used by the given function. ' +setmetatable = +[[ Sets the metatable for the given table. If `metatable` is `nil`, removes the metatable of the given table. If the original metatable has a `__metatable` field, raises an error. This function returns `table`. To change the metatable of other types from Lua code, you must use the debug library (§6.10). ]] -tonumber = [[ +tonumber = +[[ When called with no `base`, `tonumber` tries to convert its argument to a number. If the argument is already a number or a string convertible to a number, then `tonumber` returns this number; otherwise, it returns `fail`. The conversion of strings can result in integers or floats, according to the lexical conventions of Lua (see §3.1). The string may have leading and trailing spaces and a sign. ]] -tostring = [[ +tostring = +[[ Receives a value of any type and converts it to a string in a human-readable format. If the metatable of `v` has a `__tostring` field, then `tostring` calls the corresponding value with `v` as argument, and uses the result of the call as its result. Otherwise, if the metatable of `v` has a `__name` field with a string value, `tostring` may use that string in its final result. For complete control of how numbers are converted, use $string.format. ]] -type = [[ +type = +[[ Returns the type of its only argument, coded as a string. The possible results of this function are `"nil"` (a string, not the value `nil`), `"number"`, `"string"`, `"boolean"`, `"table"`, `"function"`, `"thread"`, and `"userdata"`. ]] -_VERSION = 'A global variable (not a function) that holds a string containing the running Lua version.' -warn = 'Emits a warning with a message composed by the concatenation of all its arguments (which should be strings).' -xpcall['=5.1'] = 'Calls function `f` with the given arguments in protected mode with a new message handler.' -xpcall['>5.2'] = 'Calls function `f` with the given arguments in protected mode with a new message handler.' -unpack = [[ +_VERSION = +'A global variable (not a function) that holds a string containing the running Lua version.' +warn = +'Emits a warning with a message composed by the concatenation of all its arguments (which should be strings).' +xpcall['=5.1'] = +'Calls function `f` with the given arguments in protected mode with a new message handler.' +xpcall['>5.2'] = +'Calls function `f` with the given arguments in protected mode with a new message handler.' +unpack = +[[ Returns the elements from the given `list`. This function is equivalent to ```lua return list[i], list[i+1], ···, list[j] ``` ]] -bit32 = '' -bit32.arshift = [[ +bit32 = +'' +bit32.arshift = +[[ Returns the number `x` shifted `disp` bits to the right. Negative displacements shift to the left. This shift operation is what is called arithmetic shift. Vacant bits on the left are filled with copies of the higher bit of `x`; vacant bits on the right are filled with zeros. ]] -bit32.band = 'Returns the bitwise *and* of its operands.' -bit32.bnot = [[ +bit32.band = +'Returns the bitwise *and* of its operands.' +bit32.bnot = +[[ Returns the bitwise negation of `x`. ```lua -assert(bit32.bnot(x) == (-1 - x) % 2^32) +assert(bit32.bnot(x) == +(-1 - x) % 2^32) ``` ]] -bit32.bor = 'Returns the bitwise *or* of its operands.' -bit32.btest = 'Returns a boolean signaling whether the bitwise *and* of its operands is different from zero.' -bit32.bxor = 'Returns the bitwise *exclusive or* of its operands.' -bit32.extract = 'Returns the unsigned number formed by the bits `field` to `field + width - 1` from `n`.' -bit32.replace = 'Returns a copy of `n` with the bits `field` to `field + width - 1` replaced by the value `v` .' -bit32.lrotate = 'Returns the number `x` rotated `disp` bits to the left. Negative displacements rotate to the right.' -bit32.lshift = [[ +bit32.bor = +'Returns the bitwise *or* of its operands.' +bit32.btest = +'Returns a boolean signaling whether the bitwise *and* of its operands is different from zero.' +bit32.bxor = +'Returns the bitwise *exclusive or* of its operands.' +bit32.extract = +'Returns the unsigned number formed by the bits `field` to `field + width - 1` from `n`.' +bit32.replace = +'Returns a copy of `n` with the bits `field` to `field + width - 1` replaced by the value `v` .' +bit32.lrotate = +'Returns the number `x` rotated `disp` bits to the left. Negative displacements rotate to the right.' +bit32.lshift = +[[ Returns the number `x` shifted `disp` bits to the left. Negative displacements shift to the right. In any direction, vacant bits are filled with zeros. ```lua -assert(bit32.lshift(b, disp) == (b * 2^disp) % 2^32) +assert(bit32.lshift(b, disp) == +(b * 2^disp) % 2^32) ``` ]] -bit32.rrotate = 'Returns the number `x` rotated `disp` bits to the right. Negative displacements rotate to the left.' -bit32.rshift = [[ +bit32.rrotate = +'Returns the number `x` rotated `disp` bits to the right. Negative displacements rotate to the left.' +bit32.rshift = +[[ Returns the number `x` shifted `disp` bits to the right. Negative displacements shift to the left. In any direction, vacant bits are filled with zeros. ```lua -assert(bit32.rshift(b, disp) == math.floor(b % 2^32 / 2^disp)) +assert(bit32.rshift(b, disp) == +math.floor(b % 2^32 / 2^disp)) ``` ]] -coroutine = '' -coroutine.create = 'Creates a new coroutine, with body `f`. `f` must be a function. Returns this new coroutine, an object with type `"thread"`.' -coroutine.isyieldable = 'Returns true when the running coroutine can yield.' -coroutine.isyieldable['>5.4']= 'Returns true when the coroutine `co` can yield. The default for `co` is the running coroutine.' -coroutine.close = 'Closes coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.' -coroutine.resume = 'Starts or continues the execution of coroutine `co`.' -coroutine.running = 'Returns the running coroutine plus a boolean, true when the running coroutine is the main one.' -coroutine.status = 'Returns the status of coroutine `co`.' -coroutine.wrap = 'Creates a new coroutine, with body `f`; `f` must be a function. Returns a function that resumes the coroutine each time it is called.' -coroutine.yield = 'Suspends the execution of the calling coroutine.' -costatus.running = 'Is running.' -costatus.suspended = 'Is suspended or not started.' -costatus.normal = 'Is active but not running.' -costatus.dead = 'Has finished or stopped with an error.' +coroutine = +'' +coroutine.create = +'Creates a new coroutine, with body `f`. `f` must be a function. Returns this new coroutine, an object with type `"thread"`.' +coroutine.isyieldable = +'Returns true when the running coroutine can yield.' +coroutine.isyieldable['>5.4']= +'Returns true when the coroutine `co` can yield. The default for `co` is the running coroutine.' +coroutine.close = +'Closes coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.' +coroutine.resume = +'Starts or continues the execution of coroutine `co`.' +coroutine.running = +'Returns the running coroutine plus a boolean, true when the running coroutine is the main one.' +coroutine.status = +'Returns the status of coroutine `co`.' +coroutine.wrap = +'Creates a new coroutine, with body `f`; `f` must be a function. Returns a function that resumes the coroutine each time it is called.' +coroutine.yield = +'Suspends the execution of the calling coroutine.' +costatus.running = +'Is running.' +costatus.suspended = +'Is suspended or not started.' +costatus.normal = +'Is active but not running.' +costatus.dead = +'Has finished or stopped with an error.' -debug = '' -debug.debug = 'Enters an interactive mode with the user, running each string that the user enters.' -debug.getfenv = 'Returns the environment of object `o` .' -debug.gethook = 'Returns the current hook settings of the thread.' -debug.getinfo = 'Returns a table with information about a function.' -debug.getlocal['<5.1'] = 'Returns the name and the value of the local variable with index `local` of the function at level `level` of the stack.' -debug.getlocal['>5.2'] = 'Returns the name and the value of the local variable with index `local` of the function at level `f` of the stack.' -debug.getmetatable = 'Returns the metatable of the given value.' -debug.getregistry = 'Returns the registry table.' -debug.getupvalue = 'Returns the name and the value of the upvalue with index `up` of the function.' -debug.getuservalue['<5.3'] = 'Returns the Lua value associated to u.' -debug.getuservalue['>5.4'] = [[ +debug = +'' +debug.debug = +'Enters an interactive mode with the user, running each string that the user enters.' +debug.getfenv = +'Returns the environment of object `o` .' +debug.gethook = +'Returns the current hook settings of the thread.' +debug.getinfo = +'Returns a table with information about a function.' +debug.getlocal['<5.1'] = +'Returns the name and the value of the local variable with index `local` of the function at level `level` of the stack.' +debug.getlocal['>5.2'] = +'Returns the name and the value of the local variable with index `local` of the function at level `f` of the stack.' +debug.getmetatable = +'Returns the metatable of the given value.' +debug.getregistry = +'Returns the registry table.' +debug.getupvalue = +'Returns the name and the value of the upvalue with index `up` of the function.' +debug.getuservalue['<5.3'] = +'Returns the Lua value associated to u.' +debug.getuservalue['>5.4'] = +[[ Returns the `n`-th user value associated to the userdata `u` plus a boolean, `false` if the userdata does not have that value. ]] -debug.setcstacklimit = [[ +debug.setcstacklimit = +[[ ### **Deprecated in `Lua 5.4.2`** Sets a new limit for the C stack. This limit controls how deeply nested calls can go in Lua, with the intent of avoiding a stack overflow. In case of success, this function returns the old limit. In case of error, it returns `false`. ]] -debug.setfenv = 'Sets the environment of the given `object` to the given `table` .' -debug.sethook = 'Sets the given function as a hook.' -debug.setlocal = 'Assigns the `value` to the local variable with index `local` of the function at `level` of the stack.' -debug.setmetatable = 'Sets the metatable for the given value to the given table (which can be `nil`).' -debug.setupvalue = 'Assigns the `value` to the upvalue with index `up` of the function.' -debug.setuservalue['<5.3'] = 'Sets the given value as the Lua value associated to the given udata.' -debug.setuservalue['>5.4'] = [[ +debug.setfenv = +'Sets the environment of the given `object` to the given `table` .' +debug.sethook = +'Sets the given function as a hook.' +debug.setlocal = +'Assigns the `value` to the local variable with index `local` of the function at `level` of the stack.' +debug.setmetatable = +'Sets the metatable for the given value to the given table (which can be `nil`).' +debug.setupvalue = +'Assigns the `value` to the upvalue with index `up` of the function.' +debug.setuservalue['<5.3'] = +'Sets the given value as the Lua value associated to the given udata.' +debug.setuservalue['>5.4'] = +[[ Sets the given `value` as the `n`-th user value associated to the given `udata`. `udata` must be a full userdata. ]] -debug.traceback = 'Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.' -debug.upvalueid = 'Returns a unique identifier (as a light userdata) for the upvalue numbered `n` from the given function.' -debug.upvaluejoin = 'Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th upvalue of the Lua closure `f2`.' -infowhat.n = '`name` and `namewhat`' -infowhat.S = '`source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`' -infowhat.l = '`currentline`' -infowhat.t = '`istailcall`' -infowhat.u['<5.1'] = '`nups`' -infowhat.u['>5.2'] = '`nups`, `nparams`, and `isvararg`' -infowhat.f = '`func`' -infowhat.r = '`ftransfer` and `ntransfer`' -infowhat.L = '`activelines`' -hookmask.c = 'Calls hook when Lua calls a function.' -hookmask.r = 'Calls hook when Lua returns from a function.' -hookmask.l = 'Calls hook when Lua enters a new line of code.' +debug.traceback = +'Returns a string with a traceback of the call stack. The optional message string is appended at the beginning of the traceback.' +debug.upvalueid = +'Returns a unique identifier (as a light userdata) for the upvalue numbered `n` from the given function.' +debug.upvaluejoin = +'Make the `n1`-th upvalue of the Lua closure `f1` refer to the `n2`-th upvalue of the Lua closure `f2`.' +infowhat.n = +'`name` and `namewhat`' +infowhat.S = +'`source`, `short_src`, `linedefined`, `lastlinedefined`, and `what`' +infowhat.l = +'`currentline`' +infowhat.t = +'`istailcall`' +infowhat.u['<5.1'] = +'`nups`' +infowhat.u['>5.2'] = +'`nups`, `nparams`, and `isvararg`' +infowhat.f = +'`func`' +infowhat.r = +'`ftransfer` and `ntransfer`' +infowhat.L = +'`activelines`' +hookmask.c = +'Calls hook when Lua calls a function.' +hookmask.r = +'Calls hook when Lua returns from a function.' +hookmask.l = +'Calls hook when Lua enters a new line of code.' -file = '' -file[':close'] = 'Close `file`.' -file[':flush'] = 'Saves any written data to `file`.' -file[':lines'] = [[ +file = +'' +file[':close'] = +'Close `file`.' +file[':flush'] = +'Saves any written data to `file`.' +file[':lines'] = +[[ ------ ```lua for c in file:lines(...) do @@ -221,29 +336,51 @@ for c in file:lines(...) do end ``` ]] -file[':read'] = 'Reads the `file`, according to the given formats, which specify what to read.' -file[':seek'] = 'Sets and gets the file position, measured from the beginning of the file.' -file[':setvbuf'] = 'Sets the buffering mode for an output file.' -file[':write'] = 'Writes the value of each of its arguments to `file`.' -readmode.n = 'Reads a numeral and returns it as number.' -readmode.a = 'Reads the whole file.' -readmode.l = 'Reads the next line skipping the end of line.' -readmode.L = 'Reads the next line keeping the end of line.' -seekwhence.set = 'Base is beginning of the file.' -seekwhence.cur = 'Base is current position.' -seekwhence['.end'] = 'Base is end of file.' -vbuf.no = 'Output operation appears immediately.' -vbuf.full = 'Performed only when the buffer is full.' -vbuf.line = 'Buffered until a newline is output.' +file[':read'] = +'Reads the `file`, according to the given formats, which specify what to read.' +file[':seek'] = +'Sets and gets the file position, measured from the beginning of the file.' +file[':setvbuf'] = +'Sets the buffering mode for an output file.' +file[':write'] = +'Writes the value of each of its arguments to `file`.' +readmode.n = +'Reads a numeral and returns it as number.' +readmode.a = +'Reads the whole file.' +readmode.l = +'Reads the next line skipping the end of line.' +readmode.L = +'Reads the next line keeping the end of line.' +seekwhence.set = +'Base is beginning of the file.' +seekwhence.cur = +'Base is current position.' +seekwhence['.end'] = +'Base is end of file.' +vbuf.no = +'Output operation appears immediately.' +vbuf.full = +'Performed only when the buffer is full.' +vbuf.line = +'Buffered until a newline is output.' -io = '' -io.stdin = 'standard input.' -io.stdout = 'standard output.' -io.stderr = 'standard error.' -io.close = 'Close `file` or default output file.' -io.flush = 'Saves any written data to default output file.' -io.input = 'Sets `file` as the default input file.' -io.lines = [[ +io = +'' +io.stdin = +'standard input.' +io.stdout = +'standard output.' +io.stderr = +'standard error.' +io.close = +'Close `file` or default output file.' +io.flush = +'Saves any written data to default output file.' +io.input = +'Sets `file` as the default input file.' +io.lines = +[[ ------ ```lua for c in io.lines(filename, ...) do @@ -251,161 +388,289 @@ for c in io.lines(filename, ...) do end ``` ]] -io.open = 'Opens a file, in the mode specified in the string `mode`.' -io.output = 'Sets `file` as the default output file.' -io.popen = 'Starts program prog in a separated process.' -io.read = 'Reads the `file`, according to the given formats, which specify what to read.' -io.tmpfile = 'In case of success, returns a handle for a temporary file.' -io.type = 'Checks whether `obj` is a valid file handle.' -io.write = 'Writes the value of each of its arguments to default output file.' -openmode.r = 'Read mode.' -openmode.w = 'Write mode.' -openmode.a = 'Append mode.' -openmode['.r+'] = 'Update mode, all previous data is preserved.' -openmode['.w+'] = 'Update mode, all previous data is erased.' -openmode['.a+'] = 'Append update mode, previous data is preserved, writing is only allowed at the end of file.' -openmode.rb = 'Read mode. (in binary mode.)' -openmode.wb = 'Write mode. (in binary mode.)' -openmode.ab = 'Append mode. (in binary mode.)' -openmode['.r+b'] = 'Update mode, all previous data is preserved. (in binary mode.)' -openmode['.w+b'] = 'Update mode, all previous data is erased. (in binary mode.)' -openmode['.a+b'] = 'Append update mode, previous data is preserved, writing is only allowed at the end of file. (in binary mode.)' -popenmode.r = 'Read data from this program by `file`.' -popenmode.w = 'Write data to this program by `file`.' -filetype.file = 'Is an open file handle.' -filetype['.closed file'] = 'Is a closed file handle.' -filetype['.nil'] = 'Is not a file handle.' +io.open = +'Opens a file, in the mode specified in the string `mode`.' +io.output = +'Sets `file` as the default output file.' +io.popen = +'Starts program prog in a separated process.' +io.read = +'Reads the `file`, according to the given formats, which specify what to read.' +io.tmpfile = +'In case of success, returns a handle for a temporary file.' +io.type = +'Checks whether `obj` is a valid file handle.' +io.write = +'Writes the value of each of its arguments to default output file.' +openmode.r = +'Read mode.' +openmode.w = +'Write mode.' +openmode.a = +'Append mode.' +openmode['.r+'] = +'Update mode, all previous data is preserved.' +openmode['.w+'] = +'Update mode, all previous data is erased.' +openmode['.a+'] = +'Append update mode, previous data is preserved, writing is only allowed at the end of file.' +openmode.rb = +'Read mode. (in binary mode.)' +openmode.wb = +'Write mode. (in binary mode.)' +openmode.ab = +'Append mode. (in binary mode.)' +openmode['.r+b'] = +'Update mode, all previous data is preserved. (in binary mode.)' +openmode['.w+b'] = +'Update mode, all previous data is erased. (in binary mode.)' +openmode['.a+b'] = +'Append update mode, previous data is preserved, writing is only allowed at the end of file. (in binary mode.)' +popenmode.r = +'Read data from this program by `file`.' +popenmode.w = +'Write data to this program by `file`.' +filetype.file = +'Is an open file handle.' +filetype['.closed file'] = +'Is a closed file handle.' +filetype['.nil'] = +'Is not a file handle.' -math = '' -math.abs = 'Returns the absolute value of `x`.' -math.acos = 'Returns the arc cosine of `x` (in radians).' -math.asin = 'Returns the arc sine of `x` (in radians).' -math.atan['<5.2'] = 'Returns the arc tangent of `x` (in radians).' -math.atan['>5.3'] = 'Returns the arc tangent of `y/x` (in radians).' -math.atan2 = 'Returns the arc tangent of `y/x` (in radians).' -math.ceil = 'Returns the smallest integral value larger than or equal to `x`.' -math.cos = 'Returns the cosine of `x` (assumed to be in radians).' -math.cosh = 'Returns the hyperbolic cosine of `x` (assumed to be in radians).' -math.deg = 'Converts the angle `x` from radians to degrees.' -math.exp = 'Returns the value `e^x` (where `e` is the base of natural logarithms).' -math.floor = 'Returns the largest integral value smaller than or equal to `x`.' -math.fmod = 'Returns the remainder of the division of `x` by `y` that rounds the quotient towards zero.' -math.frexp = 'Decompose `x` into tails and exponents. Returns `m` and `e` such that `x = m * (2 ^ e)`, `e` is an integer and the absolute value of `m` is in the range [0.5, 1) (or zero when `x` is zero).' -math.huge = 'A value larger than any other numeric value.' -math.ldexp = 'Returns `m * (2 ^ e)` .' -math.log['<5.1'] = 'Returns the natural logarithm of `x` .' -math.log['>5.2'] = 'Returns the logarithm of `x` in the given base.' -math.log10 = 'Returns the base-10 logarithm of x.' -math.max = 'Returns the argument with the maximum value, according to the Lua operator `<`.' -math.maxinteger = 'An integer with the maximum value for an integer.' -math.min = 'Returns the argument with the minimum value, according to the Lua operator `<`.' -math.mininteger = 'An integer with the minimum value for an integer.' -math.modf = 'Returns the integral part of `x` and the fractional part of `x`.' -math.pi = 'The value of *π*.' -math.pow = 'Returns `x ^ y` .' -math.rad = 'Converts the angle `x` from degrees to radians.' -math.random = [[ +math = +'' +math.abs = +'Returns the absolute value of `x`.' +math.acos = +'Returns the arc cosine of `x` (in radians).' +math.asin = +'Returns the arc sine of `x` (in radians).' +math.atan['<5.2'] = +'Returns the arc tangent of `x` (in radians).' +math.atan['>5.3'] = +'Returns the arc tangent of `y/x` (in radians).' +math.atan2 = +'Returns the arc tangent of `y/x` (in radians).' +math.ceil = +'Returns the smallest integral value larger than or equal to `x`.' +math.cos = +'Returns the cosine of `x` (assumed to be in radians).' +math.cosh = +'Returns the hyperbolic cosine of `x` (assumed to be in radians).' +math.deg = +'Converts the angle `x` from radians to degrees.' +math.exp = +'Returns the value `e^x` (where `e` is the base of natural logarithms).' +math.floor = +'Returns the largest integral value smaller than or equal to `x`.' +math.fmod = +'Returns the remainder of the division of `x` by `y` that rounds the quotient towards zero.' +math.frexp = +'Decompose `x` into tails and exponents. Returns `m` and `e` such that `x = m * (2 ^ e)`, `e` is an integer and the absolute value of `m` is in the range [0.5, 1) (or zero when `x` is zero).' +math.huge = +'A value larger than any other numeric value.' +math.ldexp = +'Returns `m * (2 ^ e)` .' +math.log['<5.1'] = +'Returns the natural logarithm of `x` .' +math.log['>5.2'] = +'Returns the logarithm of `x` in the given base.' +math.log10 = +'Returns the base-10 logarithm of x.' +math.max = +'Returns the argument with the maximum value, according to the Lua operator `<`.' +math.maxinteger = +'An integer with the maximum value for an integer.' +math.min = +'Returns the argument with the minimum value, according to the Lua operator `<`.' +math.mininteger = +'An integer with the minimum value for an integer.' +math.modf = +'Returns the integral part of `x` and the fractional part of `x`.' +math.pi = +'The value of *π*.' +math.pow = +'Returns `x ^ y` .' +math.rad = +'Converts the angle `x` from degrees to radians.' +math.random = +[[ * `math.random()`: Returns a float in the range [0,1). * `math.random(n)`: Returns a integer in the range [1, n]. * `math.random(m, n)`: Returns a integer in the range [m, n]. ]] -math.randomseed['<5.3'] = 'Sets `x` as the "seed" for the pseudo-random generator.' -math.randomseed['>5.4'] = [[ +math.randomseed['<5.3'] = +'Sets `x` as the "seed" for the pseudo-random generator.' +math.randomseed['>5.4'] = +[[ * `math.randomseed(x, y)`: Concatenate `x` and `y` into a 128-bit `seed` to reinitialize the pseudo-random generator. * `math.randomseed(x)`: Equate to `math.randomseed(x, 0)` . * `math.randomseed()`: Generates a seed with a weak attempt for randomness. ]] -math.sin = 'Returns the sine of `x` (assumed to be in radians).' -math.sinh = 'Returns the hyperbolic sine of `x` (assumed to be in radians).' -math.sqrt = 'Returns the square root of `x`.' -math.tan = 'Returns the tangent of `x` (assumed to be in radians).' -math.tanh = 'Returns the hyperbolic tangent of `x` (assumed to be in radians).' -math.tointeger = 'If the value `x` is convertible to an integer, returns that integer.' -math.type = 'Returns `"integer"` if `x` is an integer, `"float"` if it is a float, or `nil` if `x` is not a number.' -math.ult = 'Returns `true` if and only if `m` is below `n` when they are compared as unsigned integers.' +math.sin = +'Returns the sine of `x` (assumed to be in radians).' +math.sinh = +'Returns the hyperbolic sine of `x` (assumed to be in radians).' +math.sqrt = +'Returns the square root of `x`.' +math.tan = +'Returns the tangent of `x` (assumed to be in radians).' +math.tanh = +'Returns the hyperbolic tangent of `x` (assumed to be in radians).' +math.tointeger = +'If the value `x` is convertible to an integer, returns that integer.' +math.type = +'Returns `"integer"` if `x` is an integer, `"float"` if it is a float, or `nil` if `x` is not a number.' +math.ult = +'Returns `true` if and only if `m` is below `n` when they are compared as unsigned integers.' -os = '' -os.clock = 'Returns an approximation of the amount in seconds of CPU time used by the program.' -os.date = 'Returns a string or a table containing date and time, formatted according to the given string `format`.' -os.difftime = 'Returns the difference, in seconds, from time `t1` to time `t2`.' -os.execute = 'Passes `command` to be executed by an operating system shell.' -os.exit['<5.1'] = 'Calls the C function `exit` to terminate the host program.' -os.exit['>5.2'] = 'Calls the ISO C function `exit` to terminate the host program.' -os.getenv = 'Returns the value of the process environment variable `varname`.' -os.remove = 'Deletes the file with the given name.' -os.rename = 'Renames the file or directory named `oldname` to `newname`.' -os.setlocale = 'Sets the current locale of the program.' -os.time = 'Returns the current time when called without arguments, or a time representing the local date and time specified by the given table.' -os.tmpname = 'Returns a string with a file name that can be used for a temporary file.' -osdate.year = 'four digits' -osdate.month = '1-12' -osdate.day = '1-31' -osdate.hour = '0-23' -osdate.min = '0-59' -osdate.sec = '0-61' -osdate.wday = 'weekday, 1–7, Sunday is 1' -osdate.yday = 'day of the year, 1–366' -osdate.isdst = 'daylight saving flag, a boolean' +os = +'' +os.clock = +'Returns an approximation of the amount in seconds of CPU time used by the program.' +os.date = +'Returns a string or a table containing date and time, formatted according to the given string `format`.' +os.difftime = +'Returns the difference, in seconds, from time `t1` to time `t2`.' +os.execute = +'Passes `command` to be executed by an operating system shell.' +os.exit['<5.1'] = +'Calls the C function `exit` to terminate the host program.' +os.exit['>5.2'] = +'Calls the ISO C function `exit` to terminate the host program.' +os.getenv = +'Returns the value of the process environment variable `varname`.' +os.remove = +'Deletes the file with the given name.' +os.rename = +'Renames the file or directory named `oldname` to `newname`.' +os.setlocale = +'Sets the current locale of the program.' +os.time = +'Returns the current time when called without arguments, or a time representing the local date and time specified by the given table.' +os.tmpname = +'Returns a string with a file name that can be used for a temporary file.' +osdate.year = +'four digits' +osdate.month = +'1-12' +osdate.day = +'1-31' +osdate.hour = +'0-23' +osdate.min = +'0-59' +osdate.sec = +'0-61' +osdate.wday = +'weekday, 1–7, Sunday is 1' +osdate.yday = +'day of the year, 1–366' +osdate.isdst = +'daylight saving flag, a boolean' -package = '' -require['<5.3'] = 'Loads the given module, returns any value returned by the given module(`true` when `nil`).' -require['>5.4'] = 'Loads the given module, returns any value returned by the searcher(`true` when `nil`). Besides that value, also returns as a second result the loader data returned by the searcher, which indicates how `require` found the module. (For instance, if the module came from a file, this loader data is the file path.)' -package.config = 'A string describing some compile-time configurations for packages.' -package.cpath = 'The path used by `require` to search for a C loader.' -package.loaded = 'A table used by `require` to control which modules are already loaded.' -package.loaders = 'A table used by `require` to control how to load modules.' -package.loadlib = 'Dynamically links the host program with the C library `libname`.' -package.path = 'The path used by `require` to search for a Lua loader.' -package.preload = 'A table to store loaders for specific modules.' -package.searchers = 'A table used by `require` to control how to load modules.' -package.searchpath = 'Searches for the given `name` in the given `path`.' -package.seeall = 'Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .' +package = +'' +require['<5.3'] = +'Loads the given module, returns any value returned by the given module(`true` when `nil`).' +require['>5.4'] = +'Loads the given module, returns any value returned by the searcher(`true` when `nil`). Besides that value, also returns as a second result the loader data returned by the searcher, which indicates how `require` found the module. (For instance, if the module came from a file, this loader data is the file path.)' +package.config = +'A string describing some compile-time configurations for packages.' +package.cpath = +'The path used by `require` to search for a C loader.' +package.loaded = +'A table used by `require` to control which modules are already loaded.' +package.loaders = +'A table used by `require` to control how to load modules.' +package.loadlib = +'Dynamically links the host program with the C library `libname`.' +package.path = +'The path used by `require` to search for a Lua loader.' +package.preload = +'A table to store loaders for specific modules.' +package.searchers = +'A table used by `require` to control how to load modules.' +package.searchpath = +'Searches for the given `name` in the given `path`.' +package.seeall = +'Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .' -string = '' -string.byte = 'Returns the internal numeric codes of the characters `s[i], s[i+1], ..., s[j]`.' -string.char = 'Returns a string with length equal to the number of arguments, in which each character has the internal numeric code equal to its corresponding argument.' -string.dump = 'Returns a string containing a binary representation (a *binary chunk*) of the given function.' -string.find = 'Looks for the first match of `pattern` (see §6.4.1) in the string.' -string.format = 'Returns a formatted version of its variable number of arguments following the description given in its first argument.' -string.gmatch = [[ +string = +'' +string.byte = +'Returns the internal numeric codes of the characters `s[i], s[i+1], ..., s[j]`.' +string.char = +'Returns a string with length equal to the number of arguments, in which each character has the internal numeric code equal to its corresponding argument.' +string.dump = +'Returns a string containing a binary representation (a *binary chunk*) of the given function.' +string.find = +'Looks for the first match of `pattern` (see §6.4.1) in the string.' +string.format = +'Returns a formatted version of its variable number of arguments following the description given in its first argument.' +string.gmatch = +[[ Returns an iterator function that, each time it is called, returns the next captures from `pattern` (see §6.4.1) over the string s. As an example, the following loop will iterate over all the words from string s, printing one per line: ```lua - s = "hello world from Lua" + s = +"hello world from Lua" for w in string.gmatch(s, "%a+") do print(w) end ``` ]] -string.gsub = 'Returns a copy of s in which all (or the first `n`, if given) occurrences of the `pattern` (see §6.4.1) have been replaced by a replacement string specified by `repl`.' -string.len = 'Returns its length.' -string.lower = 'Returns a copy of this string with all uppercase letters changed to lowercase.' -string.match = 'Looks for the first match of `pattern` (see §6.4.1) in the string.' -string.pack = 'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string `fmt` (see §6.4.2) .' -string.packsize = 'Returns the size of a string resulting from `string.pack` with the given format string `fmt` (see §6.4.2) .' -string.rep['>5.2'] = 'Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.' -string.rep['<5.1'] = 'Returns a string that is the concatenation of `n` copies of the string `s` .' -string.reverse = 'Returns a string that is the string `s` reversed.' -string.sub = 'Returns the substring of the string that starts at `i` and continues until `j`.' -string.unpack = 'Returns the values packed in string according to the format string `fmt` (see §6.4.2) .' -string.upper = 'Returns a copy of this string with all lowercase letters changed to uppercase.' +string.gsub = +'Returns a copy of s in which all (or the first `n`, if given) occurrences of the `pattern` (see §6.4.1) have been replaced by a replacement string specified by `repl`.' +string.len = +'Returns its length.' +string.lower = +'Returns a copy of this string with all uppercase letters changed to lowercase.' +string.match = +'Looks for the first match of `pattern` (see §6.4.1) in the string.' +string.pack = +'Returns a binary string containing the values `v1`, `v2`, etc. packed (that is, serialized in binary form) according to the format string `fmt` (see §6.4.2) .' +string.packsize = +'Returns the size of a string resulting from `string.pack` with the given format string `fmt` (see §6.4.2) .' +string.rep['>5.2'] = +'Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.' +string.rep['<5.1'] = +'Returns a string that is the concatenation of `n` copies of the string `s` .' +string.reverse = +'Returns a string that is the string `s` reversed.' +string.sub = +'Returns the substring of the string that starts at `i` and continues until `j`.' +string.unpack = +'Returns the values packed in string according to the format string `fmt` (see §6.4.2) .' +string.upper = +'Returns a copy of this string with all lowercase letters changed to uppercase.' -table = '' -table.concat = 'Given a list where all elements are strings or numbers, returns the string `list[i]..sep..list[i+1] ··· sep..list[j]`.' -table.insert = 'Inserts element `value` at position `pos` in `list`.' -table.maxn = 'Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.' -table.move = [[ +table = +'' +table.concat = +'Given a list where all elements are strings or numbers, returns the string `list[i]..sep..list[i+1] ··· sep..list[j]`.' +table.insert = +'Inserts element `value` at position `pos` in `list`.' +table.maxn = +'Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices.' +table.move = +[[ Moves elements from table `a1` to table `a2`. ```lua -a2[t],··· = a1[f],···,a1[e] +a2[t],··· = +a1[f],···,a1[e] return a2 ``` ]] -table.pack = 'Returns a new table with all arguments stored into keys `1`, `2`, etc. and with a field `"n"` with the total number of arguments.' -table.remove = 'Removes from `list` the element at position `pos`, returning the value of the removed element.' -table.sort = 'Sorts list elements in a given order, *in-place*, from `list[1]` to `list[#list]`.' -table.unpack = [[ +table.pack = +'Returns a new table with all arguments stored into keys `1`, `2`, etc. and with a field `"n"` with the total number of arguments.' +table.remove = +'Removes from `list` the element at position `pos`, returning the value of the removed element.' +table.sort = +'Sorts list elements in a given order, *in-place*, from `list[1]` to `list[#list]`.' +table.unpack = +[[ Returns the elements from the given list. This function is equivalent to ```lua return list[i], list[i+1], ···, list[j] @@ -413,10 +678,14 @@ Returns the elements from the given list. This function is equivalent to By default, `i` is `1` and `j` is `#list`. ]] -utf8 = '' -utf8.char = 'Receives zero or more integers, converts each one to its corresponding UTF-8 byte sequence and returns a string with the concatenation of all these sequences.' -utf8.charpattern = 'The pattern which matches exactly one UTF-8 byte sequence, assuming that the subject is a valid UTF-8 string.' -utf8.codes = [[ +utf8 = +'' +utf8.char = +'Receives zero or more integers, converts each one to its corresponding UTF-8 byte sequence and returns a string with the concatenation of all these sequences.' +utf8.charpattern = +'The pattern which matches exactly one UTF-8 byte sequence, assuming that the subject is a valid UTF-8 string.' +utf8.codes = +[[ Returns values so that the construction ```lua for p, c in utf8.codes(s) do @@ -425,6 +694,9 @@ end ``` will iterate over all UTF-8 characters in string s, with p being the position (in bytes) and c the code point of each character. It raises an error if it meets any invalid byte sequence. ]] -utf8.codepoint = 'Returns the codepoints (as integers) from all characters in `s` that start between byte position `i` and `j` (both included).' -utf8.len = 'Returns the number of UTF-8 characters in string `s` that start between positions `i` and `j` (both inclusive).' -utf8.offset = 'Returns the position (in bytes) where the encoding of the `n`-th character of `s` (counting from position `i`) starts.' +utf8.codepoint = +'Returns the codepoints (as integers) from all characters in `s` that start between byte position `i` and `j` (both included).' +utf8.len = +'Returns the number of UTF-8 characters in string `s` that start between positions `i` and `j` (both inclusive).' +utf8.offset = +'Returns the position (in bytes) where the encoding of the `n`-th character of `s` (counting from position `i`) starts.' diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index bb77b308..6775bbe9 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -1,272 +1,513 @@ -DIAG_LINE_ONLY_SPACE = 'Line with spaces only.' -DIAG_LINE_POST_SPACE = 'Line with postspace.' -DIAG_UNUSED_LOCAL = 'Unused local `{}`.' -DIAG_UNDEF_GLOBAL = 'Undefined global `{}`.' -DIAG_UNDEF_FIELD = 'Undefined field `{}`.' -DIAG_UNDEF_ENV_CHILD = 'Undefined variable `{}` (overloaded `_ENV` ).' -DIAG_UNDEF_FENV_CHILD = 'Undefined variable `{}` (inside module).' -DIAG_GLOBAL_IN_NIL_ENV = 'Invalid global (`_ENV` is `nil`).' -DIAG_GLOBAL_IN_NIL_FENV = 'Invalid global (module environment is `nil`).' -DIAG_UNUSED_LABEL = 'Unused label `{}`.' -DIAG_UNUSED_FUNCTION = 'Unused functions.' -DIAG_UNUSED_VARARG = 'Unused vararg.' -DIAG_REDEFINED_LOCAL = 'Redefined local `{}`.' -DIAG_DUPLICATE_INDEX = 'Duplicate index `{}`.' -DIAG_DUPLICATE_METHOD = 'Duplicate method `{}`.' -DIAG_PREVIOUS_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,`.' -DIAG_PREFIELD_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.' -DIAG_OVER_MAX_ARGS = 'The function takes only {:d} parameters, but you passed {:d}.' -DIAG_OVER_MAX_ARGS = 'Only has {} variables, but you set {} values.' -DIAG_AMBIGUITY_1 = 'Compute `{}` first. You may need to add brackets.' -DIAG_LOWERCASE_GLOBAL = 'Global variable in lowercase initial, Did you miss `local` or misspell it?' -DIAG_EMPTY_BLOCK = 'Empty block.' -DIAG_DIAGNOSTICS = 'Lua Diagnostics.' -DIAG_SYNTAX_CHECK = 'Lua Syntax Check.' -DIAG_NEED_VERSION = 'Supported in {}, current is {}.' -DIAG_DEFINED_VERSION = 'Defined in {}, current is {}.' -DIAG_DEFINED_CUSTOM = 'Defined in {}.' -DIAG_DUPLICATE_CLASS = 'Duplicate Class `{}`.' -DIAG_UNDEFINED_CLASS = 'Undefined Class `{}`.' -DIAG_CYCLIC_EXTENDS = 'Cyclic extends.' -DIAG_INEXISTENT_PARAM = 'Inexistent param.' -DIAG_DUPLICATE_PARAM = 'Duplicate param.' -DIAG_NEED_CLASS = 'Class needs to be defined first.' -DIAG_DUPLICATE_SET_FIELD= 'Duplicate field `{}`.' -DIAG_SET_CONST = 'Assignment to const variable.' -DIAG_SET_FOR_STATE = 'Assignment to for-state variable.' -DIAG_CODE_AFTER_BREAK = 'Unable to execute code after `break`.' -DIAG_UNBALANCED_ASSIGNMENTS = 'The value is assigned as `nil` because the number of values is not enough. In Lua, `x, y = 1 ` is equivalent to `x, y = 1, nil` .' -DIAG_REQUIRE_LIKE = 'You can treat `{}` as `require` by setting.' -DIAG_COSE_NON_OBJECT = 'Cannot close a value of this type. (Unless set `__close` meta method)' -DIAG_COUNT_DOWN_LOOP = 'Do you mean `{}` ?' -DIAG_IMPLICIT_ANY = 'Can not infer type.' -DIAG_DEPRECATED = 'Deprecated.' -DIAG_DIFFERENT_REQUIRES = 'The same file is required with different names.' -DIAG_REDUNDANT_RETURN = 'Redundant return.' -DIAG_AWAIT_IN_SYNC = 'Async function can only be called in async function.' -DIAG_NOT_YIELDABLE = 'The {}th parameter of this function was not marked as yieldable, but an async function was passed in. (Use `---@param name async fun()` to mark as yieldable)' -DIAG_DISCARD_RETURNS = 'The return values of this function cannot be discarded.' +DIAG_LINE_ONLY_SPACE = +'Line with spaces only.' +DIAG_LINE_POST_SPACE = +'Line with postspace.' +DIAG_UNUSED_LOCAL = +'Unused local `{}`.' +DIAG_UNDEF_GLOBAL = +'Undefined global `{}`.' +DIAG_UNDEF_FIELD = +'Undefined field `{}`.' +DIAG_UNDEF_ENV_CHILD = +'Undefined variable `{}` (overloaded `_ENV` ).' +DIAG_UNDEF_FENV_CHILD = +'Undefined variable `{}` (inside module).' +DIAG_GLOBAL_IN_NIL_ENV = +'Invalid global (`_ENV` is `nil`).' +DIAG_GLOBAL_IN_NIL_FENV = +'Invalid global (module environment is `nil`).' +DIAG_UNUSED_LABEL = +'Unused label `{}`.' +DIAG_UNUSED_FUNCTION = +'Unused functions.' +DIAG_UNUSED_VARARG = +'Unused vararg.' +DIAG_REDEFINED_LOCAL = +'Redefined local `{}`.' +DIAG_DUPLICATE_INDEX = +'Duplicate index `{}`.' +DIAG_DUPLICATE_METHOD = +'Duplicate method `{}`.' +DIAG_PREVIOUS_CALL = +'Will be interpreted as `{}{}`. It may be necessary to add a `,`.' +DIAG_PREFIELD_CALL = +'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.' +DIAG_OVER_MAX_ARGS = +'The function takes only {:d} parameters, but you passed {:d}.' +DIAG_OVER_MAX_ARGS = +'Only has {} variables, but you set {} values.' +DIAG_AMBIGUITY_1 = +'Compute `{}` first. You may need to add brackets.' +DIAG_LOWERCASE_GLOBAL = +'Global variable in lowercase initial, Did you miss `local` or misspell it?' +DIAG_EMPTY_BLOCK = +'Empty block.' +DIAG_DIAGNOSTICS = +'Lua Diagnostics.' +DIAG_SYNTAX_CHECK = +'Lua Syntax Check.' +DIAG_NEED_VERSION = +'Supported in {}, current is {}.' +DIAG_DEFINED_VERSION = +'Defined in {}, current is {}.' +DIAG_DEFINED_CUSTOM = +'Defined in {}.' +DIAG_DUPLICATE_CLASS = +'Duplicate Class `{}`.' +DIAG_UNDEFINED_CLASS = +'Undefined Class `{}`.' +DIAG_CYCLIC_EXTENDS = +'Cyclic extends.' +DIAG_INEXISTENT_PARAM = +'Inexistent param.' +DIAG_DUPLICATE_PARAM = +'Duplicate param.' +DIAG_NEED_CLASS = +'Class needs to be defined first.' +DIAG_DUPLICATE_SET_FIELD= +'Duplicate field `{}`.' +DIAG_SET_CONST = +'Assignment to const variable.' +DIAG_SET_FOR_STATE = +'Assignment to for-state variable.' +DIAG_CODE_AFTER_BREAK = +'Unable to execute code after `break`.' +DIAG_UNBALANCED_ASSIGNMENTS = +'The value is assigned as `nil` because the number of values is not enough. In Lua, `x, y = 1 ` is equivalent to `x, y = 1, nil` .' +DIAG_REQUIRE_LIKE = +'You can treat `{}` as `require` by setting.' +DIAG_COSE_NON_OBJECT = +'Cannot close a value of this type. (Unless set `__close` meta method)' +DIAG_COUNT_DOWN_LOOP = +'Do you mean `{}` ?' +DIAG_IMPLICIT_ANY = +'Can not infer type.' +DIAG_DEPRECATED = +'Deprecated.' +DIAG_DIFFERENT_REQUIRES = +'The same file is required with different names.' +DIAG_REDUNDANT_RETURN = +'Redundant return.' +DIAG_AWAIT_IN_SYNC = +'Async function can only be called in async function.' +DIAG_NOT_YIELDABLE = +'The {}th parameter of this function was not marked as yieldable, but an async function was passed in. (Use `---@param name async fun()` to mark as yieldable)' +DIAG_DISCARD_RETURNS = +'The return values of this function cannot be discarded.' -DIAG_CIRCLE_DOC_CLASS = 'Circularly inherited classes.' -DIAG_DOC_FIELD_NO_CLASS = 'The field must be defined after the class.' -DIAG_DUPLICATE_DOC_CLASS = 'Duplicate defined class `{}`.' -DIAG_DUPLICATE_DOC_FIELD = 'Duplicate defined fields `{}`.' -DIAG_DUPLICATE_DOC_PARAM = 'Duplicate params `{}`.' -DIAG_UNDEFINED_DOC_CLASS = 'Undefined class `{}`.' -DIAG_UNDEFINED_DOC_NAME = 'Undefined type or alias `{}`.' -DIAG_UNDEFINED_DOC_PARAM = 'Undefined param `{}`.' -DIAG_UNKNOWN_DIAG_CODE = 'Unknown diagnostic code `{}`.' +DIAG_CIRCLE_DOC_CLASS = +'Circularly inherited classes.' +DIAG_DOC_FIELD_NO_CLASS = +'The field must be defined after the class.' +DIAG_DUPLICATE_DOC_CLASS = +'Duplicate defined class `{}`.' +DIAG_DUPLICATE_DOC_FIELD = +'Duplicate defined fields `{}`.' +DIAG_DUPLICATE_DOC_PARAM = +'Duplicate params `{}`.' +DIAG_UNDEFINED_DOC_CLASS = +'Undefined class `{}`.' +DIAG_UNDEFINED_DOC_NAME = +'Undefined type or alias `{}`.' +DIAG_UNDEFINED_DOC_PARAM = +'Undefined param `{}`.' +DIAG_UNKNOWN_DIAG_CODE = +'Unknown diagnostic code `{}`.' -MWS_NOT_SUPPORT = '{} does not support multi workspace for now, I may need to restart to support the new workspace ...' -MWS_RESTART = 'Restart' -MWS_NOT_COMPLETE = 'Workspace is not complete yet. You may try again later...' -MWS_COMPLETE = 'Workspace is complete now. You may try again...' -MWS_MAX_PRELOAD = 'Preloaded files has reached the upper limit ({}), you need to manually open the files that need to be loaded.' -MWS_UCONFIG_FAILED = 'Saving user setting failed.' -MWS_UCONFIG_UPDATED = 'User setting updated.' -MWS_WCONFIG_UPDATED = 'Workspace setting updated.' +MWS_NOT_SUPPORT = +'{} does not support multi workspace for now, I may need to restart to support the new workspace ...' +MWS_RESTART = +'Restart' +MWS_NOT_COMPLETE = +'Workspace is not complete yet. You may try again later...' +MWS_COMPLETE = +'Workspace is complete now. You may try again...' +MWS_MAX_PRELOAD = +'Preloaded files has reached the upper limit ({}), you need to manually open the files that need to be loaded.' +MWS_UCONFIG_FAILED = +'Saving user setting failed.' +MWS_UCONFIG_UPDATED = +'User setting updated.' +MWS_WCONFIG_UPDATED = +'Workspace setting updated.' -WORKSPACE_SKIP_LARGE_FILE = 'Too large file: {} skipped. The currently set size limit is: {} KB, and the file size is: {} KB.' -WORKSPACE_LOADING = 'Loading workspace' -WORKSPACE_DIAGNOSTIC = 'Diagnosing workspace' -WORKSPACE_SKIP_HUGE_FILE = 'For performance reasons, the parsing of this file has been stopped: {}' +WORKSPACE_SKIP_LARGE_FILE = +'Too large file: {} skipped. The currently set size limit is: {} KB, and the file size is: {} KB.' +WORKSPACE_LOADING = +'Loading workspace' +WORKSPACE_DIAGNOSTIC = +'Diagnosing workspace' +WORKSPACE_SKIP_HUGE_FILE = +'For performance reasons, the parsing of this file has been stopped: {}' -PARSER_CRASH = 'Parser crashed! Last words:{}' -PARSER_UNKNOWN = 'Unknown syntax error...' -PARSER_MISS_NAME = '<name> expected.' -PARSER_UNKNOWN_SYMBOL = 'Unexpected symbol `{symbol}`.' -PARSER_MISS_SYMBOL = 'Missed symbol `{symbol}`.' -PARSER_MISS_ESC_X = 'Should be 2 hexadecimal digits.' -PARSER_UTF8_SMALL = 'At least 1 hexadecimal digit.' -PARSER_UTF8_MAX = 'Should be between {min} and {max} .' -PARSER_ERR_ESC = 'Invalid escape sequence.' -PARSER_MUST_X16 = 'Should be hexadecimal digits.' -PARSER_MISS_EXPONENT = 'Missed digits for the exponent.' -PARSER_MISS_EXP = '<exp> expected.' -PARSER_MISS_FIELD = '<field> expected.' -PARSER_MISS_METHOD = '<method> expected.' -PARSER_ARGS_AFTER_DOTS = '`...` should be the last arg.' -PARSER_KEYWORD = '<keyword> cannot be used as name.' -PARSER_EXP_IN_ACTION = 'Unexpected <exp> .' -PARSER_BREAK_OUTSIDE = '<break> not inside a loop.' -PARSER_MALFORMED_NUMBER = 'Malformed number.' -PARSER_ACTION_AFTER_RETURN = '<eof> expected after `return`.' -PARSER_ACTION_AFTER_BREAK = '<eof> expected after `break`.' -PARSER_NO_VISIBLE_LABEL = 'No visible label `{label}` .' -PARSER_REDEFINE_LABEL = 'Label `{label}` already defined.' -PARSER_UNSUPPORT_SYMBOL = '{version} does not support this grammar.' -PARSER_UNEXPECT_DOTS = 'Cannot use `...` outside a vararg function.' -PARSER_UNEXPECT_SYMBOL = 'Unexpected symbol `{symbol}` .' -PARSER_UNKNOWN_TAG = 'Unknown attribute.' -PARSER_MULTI_TAG = 'Does not support multi attributes.' -PARSER_UNEXPECT_LFUNC_NAME = 'Local function can only use identifiers as name.' -PARSER_UNEXPECT_EFUNC_NAME = 'Function as expression cannot be named.' -PARSER_ERR_LCOMMENT_END = 'Multi-line annotations should be closed by `{symbol}` .' -PARSER_ERR_C_LONG_COMMENT = 'Lua should use `--[[ ]]` for multi-line annotations.' -PARSER_ERR_LSTRING_END = 'Long string should be closed by `{symbol}` .' -PARSER_ERR_ASSIGN_AS_EQ = 'Should use `=` for assignment.' -PARSER_ERR_EQ_AS_ASSIGN = 'Should use `==` for equal.' -PARSER_ERR_UEQ = 'Should use `~=` for not equal.' -PARSER_ERR_THEN_AS_DO = 'Should use `then` .' -PARSER_ERR_DO_AS_THEN = 'Should use `do` .' -PARSER_MISS_END = 'Miss corresponding `end` .' -PARSER_ERR_COMMENT_PREFIX = 'Lua should use `--` for annotations.' -PARSER_MISS_SEP_IN_TABLE = 'Miss symbol `,` or `;` .' -PARSER_SET_CONST = 'Assignment to const variable.' -PARSER_UNICODE_NAME = 'Contains Unicode characters.' -PARSER_ERR_NONSTANDARD_SYMBOL = 'Lua should use `{symbol}` .' -PARSER_MISS_SPACE_BETWEEN = 'Spaces must be left between symbols.' -PARSER_INDEX_IN_FUNC_NAME = 'The `[name]` form cannot be used in the name of a named function.' -PARSER_UNKNOWN_ATTRIBUTE = 'Local attribute should be `const` or `close`' +PARSER_CRASH = +'Parser crashed! Last words:{}' +PARSER_UNKNOWN = +'Unknown syntax error...' +PARSER_MISS_NAME = +'<name> expected.' +PARSER_UNKNOWN_SYMBOL = +'Unexpected symbol `{symbol}`.' +PARSER_MISS_SYMBOL = +'Missed symbol `{symbol}`.' +PARSER_MISS_ESC_X = +'Should be 2 hexadecimal digits.' +PARSER_UTF8_SMALL = +'At least 1 hexadecimal digit.' +PARSER_UTF8_MAX = +'Should be between {min} and {max} .' +PARSER_ERR_ESC = +'Invalid escape sequence.' +PARSER_MUST_X16 = +'Should be hexadecimal digits.' +PARSER_MISS_EXPONENT = +'Missed digits for the exponent.' +PARSER_MISS_EXP = +'<exp> expected.' +PARSER_MISS_FIELD = +'<field> expected.' +PARSER_MISS_METHOD = +'<method> expected.' +PARSER_ARGS_AFTER_DOTS = +'`...` should be the last arg.' +PARSER_KEYWORD = +'<keyword> cannot be used as name.' +PARSER_EXP_IN_ACTION = +'Unexpected <exp> .' +PARSER_BREAK_OUTSIDE = +'<break> not inside a loop.' +PARSER_MALFORMED_NUMBER = +'Malformed number.' +PARSER_ACTION_AFTER_RETURN = +'<eof> expected after `return`.' +PARSER_ACTION_AFTER_BREAK = +'<eof> expected after `break`.' +PARSER_NO_VISIBLE_LABEL = +'No visible label `{label}` .' +PARSER_REDEFINE_LABEL = +'Label `{label}` already defined.' +PARSER_UNSUPPORT_SYMBOL = +'{version} does not support this grammar.' +PARSER_UNEXPECT_DOTS = +'Cannot use `...` outside a vararg function.' +PARSER_UNEXPECT_SYMBOL = +'Unexpected symbol `{symbol}` .' +PARSER_UNKNOWN_TAG = +'Unknown attribute.' +PARSER_MULTI_TAG = +'Does not support multi attributes.' +PARSER_UNEXPECT_LFUNC_NAME = +'Local function can only use identifiers as name.' +PARSER_UNEXPECT_EFUNC_NAME = +'Function as expression cannot be named.' +PARSER_ERR_LCOMMENT_END = +'Multi-line annotations should be closed by `{symbol}` .' +PARSER_ERR_C_LONG_COMMENT = +'Lua should use `--[[ ]]` for multi-line annotations.' +PARSER_ERR_LSTRING_END = +'Long string should be closed by `{symbol}` .' +PARSER_ERR_ASSIGN_AS_EQ = +'Should use `=` for assignment.' +PARSER_ERR_EQ_AS_ASSIGN = +'Should use `==` for equal.' +PARSER_ERR_UEQ = +'Should use `~=` for not equal.' +PARSER_ERR_THEN_AS_DO = +'Should use `then` .' +PARSER_ERR_DO_AS_THEN = +'Should use `do` .' +PARSER_MISS_END = +'Miss corresponding `end` .' +PARSER_ERR_COMMENT_PREFIX = +'Lua should use `--` for annotations.' +PARSER_MISS_SEP_IN_TABLE = +'Miss symbol `,` or `;` .' +PARSER_SET_CONST = +'Assignment to const variable.' +PARSER_UNICODE_NAME = +'Contains Unicode characters.' +PARSER_ERR_NONSTANDARD_SYMBOL = +'Lua should use `{symbol}` .' +PARSER_MISS_SPACE_BETWEEN = +'Spaces must be left between symbols.' +PARSER_INDEX_IN_FUNC_NAME = +'The `[name]` form cannot be used in the name of a named function.' +PARSER_UNKNOWN_ATTRIBUTE = +'Local attribute should be `const` or `close`' -PARSER_LUADOC_MISS_CLASS_NAME = '<class name> expected.' -PARSER_LUADOC_MISS_EXTENDS_SYMBOL = '`:` expected.' -PARSER_LUADOC_MISS_CLASS_EXTENDS_NAME = '<class extends name> expected.' -PARSER_LUADOC_MISS_SYMBOL = '`{symbol}` expected.' -PARSER_LUADOC_MISS_ARG_NAME = '<arg name> expected.' -PARSER_LUADOC_MISS_TYPE_NAME = '<type name> expected.' -PARSER_LUADOC_MISS_ALIAS_NAME = '<alias name> expected.' -PARSER_LUADOC_MISS_ALIAS_EXTENDS = '<alias extends> expected.' -PARSER_LUADOC_MISS_PARAM_NAME = '<param name> expected.' -PARSER_LUADOC_MISS_PARAM_EXTENDS = '<param extends> expected.' -PARSER_LUADOC_MISS_FIELD_NAME = '<field name> expected.' -PARSER_LUADOC_MISS_FIELD_EXTENDS = '<field extends> expected.' -PARSER_LUADOC_MISS_GENERIC_NAME = '<generic name> expected.' -PARSER_LUADOC_MISS_GENERIC_EXTENDS_NAME = '<generic extends name> expected.' -PARSER_LUADOC_MISS_VARARG_TYPE = '<vararg type> expected.' -PARSER_LUADOC_MISS_FUN_AFTER_OVERLOAD = '`fun` expected.' -PARSER_LUADOC_MISS_CATE_NAME = '<doc name> expected.' -PARSER_LUADOC_MISS_DIAG_MODE = '<diagnostic mode> expected.' -PARSER_LUADOC_ERROR_DIAG_MODE = '<diagnostic mode> incorrect.' +PARSER_LUADOC_MISS_CLASS_NAME = +'<class name> expected.' +PARSER_LUADOC_MISS_EXTENDS_SYMBOL = +'`:` expected.' +PARSER_LUADOC_MISS_CLASS_EXTENDS_NAME = +'<class extends name> expected.' +PARSER_LUADOC_MISS_SYMBOL = +'`{symbol}` expected.' +PARSER_LUADOC_MISS_ARG_NAME = +'<arg name> expected.' +PARSER_LUADOC_MISS_TYPE_NAME = +'<type name> expected.' +PARSER_LUADOC_MISS_ALIAS_NAME = +'<alias name> expected.' +PARSER_LUADOC_MISS_ALIAS_EXTENDS = +'<alias extends> expected.' +PARSER_LUADOC_MISS_PARAM_NAME = +'<param name> expected.' +PARSER_LUADOC_MISS_PARAM_EXTENDS = +'<param extends> expected.' +PARSER_LUADOC_MISS_FIELD_NAME = +'<field name> expected.' +PARSER_LUADOC_MISS_FIELD_EXTENDS = +'<field extends> expected.' +PARSER_LUADOC_MISS_GENERIC_NAME = +'<generic name> expected.' +PARSER_LUADOC_MISS_GENERIC_EXTENDS_NAME = +'<generic extends name> expected.' +PARSER_LUADOC_MISS_VARARG_TYPE = +'<vararg type> expected.' +PARSER_LUADOC_MISS_FUN_AFTER_OVERLOAD = +'`fun` expected.' +PARSER_LUADOC_MISS_CATE_NAME = +'<doc name> expected.' +PARSER_LUADOC_MISS_DIAG_MODE = +'<diagnostic mode> expected.' +PARSER_LUADOC_ERROR_DIAG_MODE = +'<diagnostic mode> incorrect.' -SYMBOL_ANONYMOUS = '<Anonymous>' +SYMBOL_ANONYMOUS = +'<Anonymous>' -HOVER_VIEW_DOCUMENTS = 'View documents' +HOVER_VIEW_DOCUMENTS = +'View documents' -HOVER_DOCUMENT_LUA51 = 'http://www.lua.org/manual/5.1/manual.html#{}' -HOVER_DOCUMENT_LUA52 = 'http://www.lua.org/manual/5.2/manual.html#{}' -HOVER_DOCUMENT_LUA53 = 'http://www.lua.org/manual/5.3/manual.html#{}' -HOVER_DOCUMENT_LUA54 = 'http://www.lua.org/manual/5.4/manual.html#{}' -HOVER_DOCUMENT_LUAJIT = 'http://www.lua.org/manual/5.1/manual.html#{}' +HOVER_DOCUMENT_LUA51 = +'http://www.lua.org/manual/5.1/manual.html#{}' +HOVER_DOCUMENT_LUA52 = +'http://www.lua.org/manual/5.2/manual.html#{}' +HOVER_DOCUMENT_LUA53 = +'http://www.lua.org/manual/5.3/manual.html#{}' +HOVER_DOCUMENT_LUA54 = +'http://www.lua.org/manual/5.4/manual.html#{}' +HOVER_DOCUMENT_LUAJIT = +'http://www.lua.org/manual/5.1/manual.html#{}' -HOVER_NATIVE_DOCUMENT_LUA51 = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA52 = 'command:extension.lua.doc?["en-us/52/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA53 = 'command:extension.lua.doc?["en-us/53/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUA54 = 'command:extension.lua.doc?["en-us/54/manual.html/{}"]' -HOVER_NATIVE_DOCUMENT_LUAJIT = 'command:extension.lua.doc?["en-us/51/manual.html/{}"]' +HOVER_NATIVE_DOCUMENT_LUA51 = +'command:extension.lua.doc?["en-us/51/manual.html/{}"]' +HOVER_NATIVE_DOCUMENT_LUA52 = +'command:extension.lua.doc?["en-us/52/manual.html/{}"]' +HOVER_NATIVE_DOCUMENT_LUA53 = +'command:extension.lua.doc?["en-us/53/manual.html/{}"]' +HOVER_NATIVE_DOCUMENT_LUA54 = +'command:extension.lua.doc?["en-us/54/manual.html/{}"]' +HOVER_NATIVE_DOCUMENT_LUAJIT = +'command:extension.lua.doc?["en-us/51/manual.html/{}"]' -HOVER_MULTI_PROTOTYPE = '({} prototypes)' -HOVER_STRING_BYTES = '{} bytes' -HOVER_STRING_CHARACTERS = '{} bytes, {} characters' -HOVER_MULTI_DEF_PROTO = '({} definitions, {} prototypes)' -HOVER_MULTI_PROTO_NOT_FUNC = '({} non functional definition)' +HOVER_MULTI_PROTOTYPE = +'({} prototypes)' +HOVER_STRING_BYTES = +'{} bytes' +HOVER_STRING_CHARACTERS = +'{} bytes, {} characters' +HOVER_MULTI_DEF_PROTO = +'({} definitions, {} prototypes)' +HOVER_MULTI_PROTO_NOT_FUNC = +'({} non functional definition)' -HOVER_USE_LUA_PATH = '(Search path: `{}`)' -HOVER_EXTENDS = 'Expand to {}' -HOVER_TABLE_TIME_UP = 'Partial type inference has been disabled for performance reasons.' -HOVER_WS_LOADING = 'Workspace loading: {} / {}' +HOVER_USE_LUA_PATH = +'(Search path: `{}`)' +HOVER_EXTENDS = +'Expand to {}' +HOVER_TABLE_TIME_UP = +'Partial type inference has been disabled for performance reasons.' +HOVER_WS_LOADING = +'Workspace loading: {} / {}' -ACTION_DISABLE_DIAG = 'Disable diagnostics in the workspace ({}).' -ACTION_MARK_GLOBAL = 'Mark `{}` as defined global.' -ACTION_REMOVE_SPACE = 'Clear all postemptive spaces.' -ACTION_ADD_SEMICOLON = 'Add `;` .' -ACTION_ADD_BRACKETS = 'Add brackets.' -ACTION_RUNTIME_VERSION = 'Change runtime version to {} .' -ACTION_OPEN_LIBRARY = 'Load globals from {} .' -ACTION_ADD_DO_END = 'Add `do ... end` .' -ACTION_FIX_LCOMMENT_END = 'Modify to the correct multi-line annotations closing symbol.' -ACTION_ADD_LCOMMENT_END = 'Close multi-line annotations.' -ACTION_FIX_C_LONG_COMMENT = 'Modify to Lua multi-line annotations format.' -ACTION_FIX_LSTRING_END = 'Modify to the correct long string closing symbol.' -ACTION_ADD_LSTRING_END = 'Close long string.' -ACTION_FIX_ASSIGN_AS_EQ = 'Modify to `=` .' -ACTION_FIX_EQ_AS_ASSIGN = 'Modify to `==` .' -ACTION_FIX_UEQ = 'Modify to `~=` .' -ACTION_FIX_THEN_AS_DO = 'Modify to `then` .' -ACTION_FIX_DO_AS_THEN = 'Modify to `do` .' -ACTION_ADD_END = 'Add `end` (infer the addition location ny indentations).' -ACTION_FIX_COMMENT_PREFIX = 'Modify to `--` .' -ACTION_FIX_NONSTANDARD_SYMBOL = 'Modify to `{symbol}` .' -ACTION_RUNTIME_UNICODE_NAME = 'Allow Unicode characters.' -ACTION_SWAP_PARAMS = 'Change to parameter {index} of `{node}`' -ACTION_FIX_INSERT_SPACE = 'Insert space.' -ACTION_JSON_TO_LUA = 'Convert JSON to Lua' -ACTION_DISABLE_DIAG_LINE= 'Disable diagnostics on this line ({}).' -ACTION_DISABLE_DIAG_FILE= 'Disable diagnostics in this file ({}).' -ACTION_MARK_ASYNC = 'Mark current function as async.' +ACTION_DISABLE_DIAG = +'Disable diagnostics in the workspace ({}).' +ACTION_MARK_GLOBAL = +'Mark `{}` as defined global.' +ACTION_REMOVE_SPACE = +'Clear all postemptive spaces.' +ACTION_ADD_SEMICOLON = +'Add `;` .' +ACTION_ADD_BRACKETS = +'Add brackets.' +ACTION_RUNTIME_VERSION = +'Change runtime version to {} .' +ACTION_OPEN_LIBRARY = +'Load globals from {} .' +ACTION_ADD_DO_END = +'Add `do ... end` .' +ACTION_FIX_LCOMMENT_END = +'Modify to the correct multi-line annotations closing symbol.' +ACTION_ADD_LCOMMENT_END = +'Close multi-line annotations.' +ACTION_FIX_C_LONG_COMMENT = +'Modify to Lua multi-line annotations format.' +ACTION_FIX_LSTRING_END = +'Modify to the correct long string closing symbol.' +ACTION_ADD_LSTRING_END = +'Close long string.' +ACTION_FIX_ASSIGN_AS_EQ = +'Modify to `=` .' +ACTION_FIX_EQ_AS_ASSIGN = +'Modify to `==` .' +ACTION_FIX_UEQ = +'Modify to `~=` .' +ACTION_FIX_THEN_AS_DO = +'Modify to `then` .' +ACTION_FIX_DO_AS_THEN = +'Modify to `do` .' +ACTION_ADD_END = +'Add `end` (infer the addition location ny indentations).' +ACTION_FIX_COMMENT_PREFIX = +'Modify to `--` .' +ACTION_FIX_NONSTANDARD_SYMBOL = +'Modify to `{symbol}` .' +ACTION_RUNTIME_UNICODE_NAME = +'Allow Unicode characters.' +ACTION_SWAP_PARAMS = +'Change to parameter {index} of `{node}`' +ACTION_FIX_INSERT_SPACE = +'Insert space.' +ACTION_JSON_TO_LUA = +'Convert JSON to Lua' +ACTION_DISABLE_DIAG_LINE= +'Disable diagnostics on this line ({}).' +ACTION_DISABLE_DIAG_FILE= +'Disable diagnostics in this file ({}).' +ACTION_MARK_ASYNC = +'Mark current function as async.' -COMMAND_DISABLE_DIAG = 'Disable diagnostics' -COMMAND_MARK_GLOBAL = 'Mark defined global' -COMMAND_REMOVE_SPACE = 'Clear all postemptive spaces' -COMMAND_ADD_BRACKETS = 'Add brackets' -COMMAND_RUNTIME_VERSION = 'Change runtime version' -COMMAND_OPEN_LIBRARY = 'Load globals from 3rd library' -COMMAND_UNICODE_NAME = 'Allow Unicode characters.' -COMMAND_JSON_TO_LUA = 'Convert JSON to Lua' -COMMAND_JSON_TO_LUA_FAILED = 'Convert JSON to Lua failed: {}' +COMMAND_DISABLE_DIAG = +'Disable diagnostics' +COMMAND_MARK_GLOBAL = +'Mark defined global' +COMMAND_REMOVE_SPACE = +'Clear all postemptive spaces' +COMMAND_ADD_BRACKETS = +'Add brackets' +COMMAND_RUNTIME_VERSION = +'Change runtime version' +COMMAND_OPEN_LIBRARY = +'Load globals from 3rd library' +COMMAND_UNICODE_NAME = +'Allow Unicode characters.' +COMMAND_JSON_TO_LUA = +'Convert JSON to Lua' +COMMAND_JSON_TO_LUA_FAILED = +'Convert JSON to Lua failed: {}' -COMPLETION_IMPORT_FROM = 'Import from {}' -COMPLETION_DISABLE_AUTO_REQUIRE = 'Disable auto require' -COMPLETION_ASK_AUTO_REQUIRE = 'Add the code at the top of the file to require this file?' +COMPLETION_IMPORT_FROM = +'Import from {}' +COMPLETION_DISABLE_AUTO_REQUIRE = +'Disable auto require' +COMPLETION_ASK_AUTO_REQUIRE = +'Add the code at the top of the file to require this file?' -DEBUG_MEMORY_LEAK = "{} I'm sorry for the serious memory leak. The language service will be restarted soon." -DEBUG_RESTART_NOW = 'Restart now' +DEBUG_MEMORY_LEAK = +"{} I'm sorry for the serious memory leak. The language service will be restarted soon." +DEBUG_RESTART_NOW = +'Restart now' -WINDOW_COMPILING = 'Compiling' -WINDOW_DIAGNOSING = 'Diagnosing' -WINDOW_INITIALIZING = 'Initializing...' -WINDOW_PROCESSING_HOVER = 'Processing hover...' -WINDOW_PROCESSING_DEFINITION = 'Processing definition...' -WINDOW_PROCESSING_REFERENCE = 'Processing reference...' -WINDOW_PROCESSING_RENAME = 'Processing rename...' -WINDOW_PROCESSING_COMPLETION = 'Processing completion...' -WINDOW_PROCESSING_SIGNATURE = 'Processing signature help...' -WINDOW_PROCESSING_SYMBOL = 'Processing file symbols...' -WINDOW_PROCESSING_WS_SYMBOL = 'Processing workspace symbols...' -WINDOW_PROCESSING_SEMANTIC_FULL = 'Processing full semantic tokens...' -WINDOW_PROCESSING_SEMANTIC_RANGE = 'Processing incremental semantic tokens...' -WINDOW_PROCESSING_TYPE_HINT = 'Processing inline hint...' -WINDOW_INCREASE_UPPER_LIMIT = 'Increase upper limit' -WINDOW_CLOSE = 'Close' -WINDOW_SETTING_WS_DIAGNOSTIC = 'You can delay or disable workspace diagnostics in settings' -WINDOW_DONT_SHOW_AGAIN = "Don't show again" -WINDOW_DELAY_WS_DIAGNOSTIC = 'Idle time diagnosis (delay {} seconds)' -WINDOW_DISABLE_DIAGNOSTIC = 'Disable workspace diagnostics' -WINDOW_LUA_STATUS_WORKSPACE = 'Workspace : {}' -WINDOW_LUA_STATUS_CACHED_FILES = 'Cached files: {ast}/{max}' -WINDOW_LUA_STATUS_MEMORY_COUNT = 'Memory usage: {mem:.f}M' -WINDOW_APPLY_SETTING = 'Apply setting' -WINDOW_CHECK_SEMANTIC = 'If you are using the color theme in the market, you may need to modify `editor.semanticHighlighting.enabled` to `true` to make semantic tokens take effect.' -WINDOW_TELEMETRY_HINT = 'Please allow sending anonymous usage data and error reports to help us further improve this extension. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy) .' -WINDOW_TELEMETRY_ENABLE = 'Allow' -WINDOW_TELEMETRY_DISABLE = 'Prohibit' -WINDOW_CLIENT_NOT_SUPPORT_CONFIG = 'Your client does not support modifying settings from the server side, please manually modify the following settings:' -WINDOW_LCONFIG_NOT_SUPPORT_CONFIG= 'Automatic modification of local settings is not currently supported, please manually modify the following settings:' -WINDOW_MANUAL_CONFIG_ADD = '`{key}`: add element `{value:q}` ;' -WINDOW_MANUAL_CONFIG_SET = '`{key}`: set to `{value:q}` ;' -WINDOW_MANUAL_CONFIG_PROP = '`{key}`: set the property `{prop}` to `{value:q}`;' -WINDOW_APPLY_WHIT_SETTING = 'Apply and modify settings' -WINDOW_APPLY_WHITOUT_SETTING = 'Apply but do not modify settings' -WINDOW_ASK_APPLY_LIBRARY = 'Do you need to configure your work environment as `{}`?' +WINDOW_COMPILING = +'Compiling' +WINDOW_DIAGNOSING = +'Diagnosing' +WINDOW_INITIALIZING = +'Initializing...' +WINDOW_PROCESSING_HOVER = +'Processing hover...' +WINDOW_PROCESSING_DEFINITION = +'Processing definition...' +WINDOW_PROCESSING_REFERENCE = +'Processing reference...' +WINDOW_PROCESSING_RENAME = +'Processing rename...' +WINDOW_PROCESSING_COMPLETION = +'Processing completion...' +WINDOW_PROCESSING_SIGNATURE = +'Processing signature help...' +WINDOW_PROCESSING_SYMBOL = +'Processing file symbols...' +WINDOW_PROCESSING_WS_SYMBOL = +'Processing workspace symbols...' +WINDOW_PROCESSING_SEMANTIC_FULL = +'Processing full semantic tokens...' +WINDOW_PROCESSING_SEMANTIC_RANGE = +'Processing incremental semantic tokens...' +WINDOW_PROCESSING_TYPE_HINT = +'Processing inline hint...' +WINDOW_INCREASE_UPPER_LIMIT = +'Increase upper limit' +WINDOW_CLOSE = +'Close' +WINDOW_SETTING_WS_DIAGNOSTIC = +'You can delay or disable workspace diagnostics in settings' +WINDOW_DONT_SHOW_AGAIN = +"Don't show again" +WINDOW_DELAY_WS_DIAGNOSTIC = +'Idle time diagnosis (delay {} seconds)' +WINDOW_DISABLE_DIAGNOSTIC = +'Disable workspace diagnostics' +WINDOW_LUA_STATUS_WORKSPACE = +'Workspace : {}' +WINDOW_LUA_STATUS_CACHED_FILES = +'Cached files: {ast}/{max}' +WINDOW_LUA_STATUS_MEMORY_COUNT = +'Memory usage: {mem:.f}M' +WINDOW_APPLY_SETTING = +'Apply setting' +WINDOW_CHECK_SEMANTIC = +'If you are using the color theme in the market, you may need to modify `editor.semanticHighlighting.enabled` to `true` to make semantic tokens take effect.' +WINDOW_TELEMETRY_HINT = +'Please allow sending anonymous usage data and error reports to help us further improve this extension. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy) .' +WINDOW_TELEMETRY_ENABLE = +'Allow' +WINDOW_TELEMETRY_DISABLE = +'Prohibit' +WINDOW_CLIENT_NOT_SUPPORT_CONFIG = +'Your client does not support modifying settings from the server side, please manually modify the following settings:' +WINDOW_LCONFIG_NOT_SUPPORT_CONFIG= +'Automatic modification of local settings is not currently supported, please manually modify the following settings:' +WINDOW_MANUAL_CONFIG_ADD = +'`{key}`: add element `{value:q}` ;' +WINDOW_MANUAL_CONFIG_SET = +'`{key}`: set to `{value:q}` ;' +WINDOW_MANUAL_CONFIG_PROP = +'`{key}`: set the property `{prop}` to `{value:q}`;' +WINDOW_APPLY_WHIT_SETTING = +'Apply and modify settings' +WINDOW_APPLY_WHITOUT_SETTING = +'Apply but do not modify settings' +WINDOW_ASK_APPLY_LIBRARY = +'Do you need to configure your work environment as `{}`?' -CONFIG_LOAD_FAILED = 'Unable to read the settings file: {}' -CONFIG_LOAD_ERROR = 'Setting file loading error: {}' -CONFIG_TYPE_ERROR = 'The setting file must be in lua or json format: {}' +CONFIG_LOAD_FAILED = +'Unable to read the settings file: {}' +CONFIG_LOAD_ERROR = +'Setting file loading error: {}' +CONFIG_TYPE_ERROR = +'The setting file must be in lua or json format: {}' -PLUGIN_RUNTIME_ERROR = [[ +PLUGIN_RUNTIME_ERROR = +[[ An error occurred in the plugin, please report it to the plugin author. Please check the details in the output or log. Plugin path: {} ]] -PLUGIN_TRUST_LOAD = [[ +PLUGIN_TRUST_LOAD = +[[ The current settings try to load the plugin at this location:{} Note that malicious plugin may harm your computer ]] -PLUGIN_TRUST_YES = [[ +PLUGIN_TRUST_YES = +[[ Trust and load this plugin ]] -PLUGIN_TRUST_NO = [[ +PLUGIN_TRUST_NO = +[[ Don't load this plugin ]] diff --git a/locale/en-us/setting.lua b/locale/en-us/setting.lua index 470bb21b..28cfdb64 100644 --- a/locale/en-us/setting.lua +++ b/locale/en-us/setting.lua @@ -1,14 +1,18 @@ ---@diagnostic disable: undefined-global -config.runtime.version = "Lua runtime version." -config.runtime.path = [[ +config.runtime.version = +"Lua runtime version." +config.runtime.path = +[[ When using `require`, how to find the file based on the input name. Setting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files. if `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched. If you want to load files outside the workspace, you need to set `Lua.workspace.library` first. ]] -config.runtime.pathStrict = 'When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.' -config.runtime.special = [[The custom global variables are regarded as some special built-in variables, and the language server will provide special support +config.runtime.pathStrict = +'When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.' +config.runtime.special = +[[The custom global variables are regarded as some special built-in variables, and the language server will provide special support The following example shows that 'include' is treated as' require '. ```json "Lua.runtime.special" : { @@ -16,40 +20,64 @@ The following example shows that 'include' is treated as' require '. } ``` ]] -config.runtime.unicodeName = "Allows Unicode characters in name." -config.runtime.nonstandardSymbol = "Supports non-standard symbols. Make sure that your runtime environment supports these symbols." -config.runtime.plugin = "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more." -config.runtime.fileEncoding = "File encoding. The `ansi` option is only available under the `Windows` platform." -config.runtime.builtin = [[ +config.runtime.unicodeName = +"Allows Unicode characters in name." +config.runtime.nonstandardSymbol = +"Supports non-standard symbols. Make sure that your runtime environment supports these symbols." +config.runtime.plugin = +"Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more." +config.runtime.fileEncoding = +"File encoding. The `ansi` option is only available under the `Windows` platform." +config.runtime.builtin = +[[ Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment. * `default`: Indicates that the library will be enabled or disabled according to the runtime version * `enable`: always enable * `disable`: always disable ]] -config.diagnostics.enable = "Enable diagnostics." -config.diagnostics.disable = "Disabled diagnostic (Use code in hover brackets)." -config.diagnostics.globals = "Defined global variables." -config.diagnostics.severity = "Modified diagnostic severity." -config.diagnostics.neededFileStatus = [[ +config.diagnostics.enable = +"Enable diagnostics." +config.diagnostics.disable = +"Disabled diagnostic (Use code in hover brackets)." +config.diagnostics.globals = +"Defined global variables." +config.diagnostics.severity = +"Modified diagnostic severity." +config.diagnostics.neededFileStatus = +[[ * Opened: only diagnose opened files * Any: diagnose all files * Disable: disable this diagnostic ]] -config.diagnostics.workspaceDelay = "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics." -config.diagnostics.workspaceRate = "Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting." -config.diagnostics.libraryFiles = "How to diagnose files loaded via `Lua.workspace.library`." -config.diagnostics.ignoredFiles = "How to diagnose ignored files." -config.diagnostics.files.Enable = "Always diagnose these files." -config.diagnostics.files.Opened = "Only when these files are opened will it be diagnosed." -config.diagnostics.files.Disable = "These files are not diagnosed." -config.workspace.ignoreDir = "Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir, -config.workspace.ignoreSubmodules = "Ignore submodules." -config.workspace.useGitIgnore = "Ignore files list in `.gitignore` ." -config.workspace.maxPreload = "Max preloaded files." -config.workspace.preloadFileSize = "Skip files larger than this value (KB) when preloading." -config.workspace.library = "In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files." -config.workspace.checkThirdParty = [[ +config.diagnostics.workspaceDelay = +"Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics." +config.diagnostics.workspaceRate = +"Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting." +config.diagnostics.libraryFiles = +"How to diagnose files loaded via `Lua.workspace.library`." +config.diagnostics.ignoredFiles = +"How to diagnose ignored files." +config.diagnostics.files.Enable = +"Always diagnose these files." +config.diagnostics.files.Opened = +"Only when these files are opened will it be diagnosed." +config.diagnostics.files.Disable = +"These files are not diagnosed." +config.workspace.ignoreDir = +"Ignored files and directories (Use `.gitignore` grammar)."-- .. example.ignoreDir, +config.workspace.ignoreSubmodules = +"Ignore submodules." +config.workspace.useGitIgnore = +"Ignore files list in `.gitignore` ." +config.workspace.maxPreload = +"Max preloaded files." +config.workspace.preloadFileSize = +"Skip files larger than this value (KB) when preloading." +config.workspace.library = +"In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files." +config.workspace.checkThirdParty = +[[ Automatic detection and adaptation of third-party libraries, currently supported libraries are: * OpenResty @@ -59,65 +87,127 @@ Automatic detection and adaptation of third-party libraries, currently supported * skynet * Jass ]] -config.workspace.userThirdParty = 'Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)' -config.completion.enable = 'Enable completion.' -config.completion.callSnippet = 'Shows function call snippets.' -config.completion.callSnippet.Disable = "Only shows `function name`." -config.completion.callSnippet.Both = "Shows `function name` and `call snippet`." -config.completion.callSnippet.Replace = "Only shows `call snippet.`" -config.completion.keywordSnippet = 'Shows keyword syntax snippets.' -config.completion.keywordSnippet.Disable = "Only shows `keyword`." -config.completion.keywordSnippet.Both = "Shows `keyword` and `syntax snippet`." -config.completion.keywordSnippet.Replace = "Only shows `syntax snippet`." -config.completion.displayContext = "Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to `0`, this feature can be disabled." -config.completion.workspaceWord = "Whether the displayed context word contains the content of other files in the workspace." -config.completion.showWord = "Show contextual words in suggestions." -config.completion.showWord.Enable = "Always show context words in suggestions." -config.completion.showWord.Fallback = "Contextual words are only displayed when suggestions based on semantics cannot be provided." -config.completion.showWord.Disable = "Do not display context words." -config.completion.autoRequire = "When the input looks like a file name, automatically `require` this file." -config.completion.showParams = "Display parameters in completion list. When the function has multiple definitions, they will be displayed separately." -config.completion.requireSeparator = "The separator used when `require`." -config.completion.postfix = "The symbol used to trigger the postfix suggestion." -config.color.mode = "Color mode." -config.color.mode.Semantic = "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect." -config.color.mode.SemanticEnhanced = "Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive." -config.color.mode.Grammar = "Grammar color." -config.semantic.enable = "Enable semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect." -config.semantic.variable = "Semantic coloring of variables/fields/parameters." -config.semantic.annotation = "Semantic coloring of type annotations." -config.semantic.keyword = "Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring." -config.signatureHelp.enable = "Enable signature help." -config.hover.enable = "Enable hover." -config.hover.viewString = "Hover to view the contents of a string (only if the literal contains an escape character)." -config.hover.viewStringMax = "The maximum length of a hover to view the contents of a string." -config.hover.viewNumber = "Hover to view numeric content (only if literal is not decimal)." -config.hover.fieldInfer = "When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped." -config.hover.previewFields = "When hovering to view a table, limits the maximum number of previews for fields." -config.hover.enumsLimit = "When the value corresponds to multiple types, limit the number of types displaying." -config.develop.enable = 'Developer mode. Do not enable, performance will be affected.' -config.develop.debuggerPort = 'Listen port of debugger.' -config.develop.debuggerWait = 'Suspend before debugger connects.' -config.intelliSense.searchDepth = 'Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.' -config.intelliSense.fastGlobal = 'In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.' -config.window.statusBar = 'Show extension status in status bar.' -config.window.progressBar = 'Show progress bar in status bar.' -config.hint.enable = 'Enable inlay hint.' -config.hint.paramType = 'Show type hints at the parameter of the function.' -config.hint.setType = 'Show hints of type at assignment operation.' -config.hint.paramName = 'Show hints of parameter name at the function call.' -config.hint.paramName.All = 'All types of parameters are shown.' -config.hint.paramName.Literal = 'Only literal type parameters are shown.' -config.hint.paramName.Disable = 'Disable parameter hints.' -config.hint.arrayIndex = 'Show hints of array index when constructing a table.' -config.hint.arrayIndex.Enable = 'Show hints in all tables.' -config.hint.arrayIndex.Auto = 'Show hints only when the table is greater than 3 items, or the table is a mixed table.' -config.hint.arrayIndex.Disable = 'Disable hints of array index.' -config.telemetry.enable = [[ +config.workspace.userThirdParty = +'Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)' +config.completion.enable = +'Enable completion.' +config.completion.callSnippet = +'Shows function call snippets.' +config.completion.callSnippet.Disable = +"Only shows `function name`." +config.completion.callSnippet.Both = +"Shows `function name` and `call snippet`." +config.completion.callSnippet.Replace = +"Only shows `call snippet.`" +config.completion.keywordSnippet = +'Shows keyword syntax snippets.' +config.completion.keywordSnippet.Disable = +"Only shows `keyword`." +config.completion.keywordSnippet.Both = +"Shows `keyword` and `syntax snippet`." +config.completion.keywordSnippet.Replace = +"Only shows `syntax snippet`." +config.completion.displayContext = +"Previewing the relevant code snippet of the suggestion may help you understand the usage of the suggestion. The number set indicates the number of intercepted lines in the code fragment. If it is set to `0`, this feature can be disabled." +config.completion.workspaceWord = +"Whether the displayed context word contains the content of other files in the workspace." +config.completion.showWord = +"Show contextual words in suggestions." +config.completion.showWord.Enable = +"Always show context words in suggestions." +config.completion.showWord.Fallback = +"Contextual words are only displayed when suggestions based on semantics cannot be provided." +config.completion.showWord.Disable = +"Do not display context words." +config.completion.autoRequire = +"When the input looks like a file name, automatically `require` this file." +config.completion.showParams = +"Display parameters in completion list. When the function has multiple definitions, they will be displayed separately." +config.completion.requireSeparator = +"The separator used when `require`." +config.completion.postfix = +"The symbol used to trigger the postfix suggestion." +config.color.mode = +"Color mode." +config.color.mode.Semantic = +"Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect." +config.color.mode.SemanticEnhanced = +"Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive." +config.color.mode.Grammar = +"Grammar color." +config.semantic.enable = +"Enable semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect." +config.semantic.variable = +"Semantic coloring of variables/fields/parameters." +config.semantic.annotation = +"Semantic coloring of type annotations." +config.semantic.keyword = +"Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring." +config.signatureHelp.enable = +"Enable signature help." +config.hover.enable = +"Enable hover." +config.hover.viewString = +"Hover to view the contents of a string (only if the literal contains an escape character)." +config.hover.viewStringMax = +"The maximum length of a hover to view the contents of a string." +config.hover.viewNumber = +"Hover to view numeric content (only if literal is not decimal)." +config.hover.fieldInfer = +"When hovering to view a table, type infer will be performed for each field. When the accumulated time of type infer reaches the set value (MS), the type infer of subsequent fields will be skipped." +config.hover.previewFields = +"When hovering to view a table, limits the maximum number of previews for fields." +config.hover.enumsLimit = +"When the value corresponds to multiple types, limit the number of types displaying." +config.develop.enable = +'Developer mode. Do not enable, performance will be affected.' +config.develop.debuggerPort = +'Listen port of debugger.' +config.develop.debuggerWait = +'Suspend before debugger connects.' +config.intelliSense.searchDepth = +'Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.' +config.intelliSense.fastGlobal = +'In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.' +config.window.statusBar = +'Show extension status in status bar.' +config.window.progressBar = +'Show progress bar in status bar.' +config.hint.enable = +'Enable inlay hint.' +config.hint.paramType = +'Show type hints at the parameter of the function.' +config.hint.setType = +'Show hints of type at assignment operation.' +config.hint.paramName = +'Show hints of parameter name at the function call.' +config.hint.paramName.All = +'All types of parameters are shown.' +config.hint.paramName.Literal = +'Only literal type parameters are shown.' +config.hint.paramName.Disable = +'Disable parameter hints.' +config.hint.arrayIndex = +'Show hints of array index when constructing a table.' +config.hint.arrayIndex.Enable = +'Show hints in all tables.' +config.hint.arrayIndex.Auto = +'Show hints only when the table is greater than 3 items, or the table is a mixed table.' +config.hint.arrayIndex.Disable = +'Disable hints of array index.' +config.format.enable = +'Enable code formatter.' +config.telemetry.enable = +[[ Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy). ]] -config.misc.parameters = '[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.' -config.IntelliSense.traceLocalSet = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' -config.IntelliSense.traceReturn = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' -config.IntelliSense.traceBeSetted = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' -config.IntelliSense.traceFieldInject = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.misc.parameters = +'[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.' +config.IntelliSense.traceLocalSet = +'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.IntelliSense.traceReturn = +'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.IntelliSense.traceBeSetted = +'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' +config.IntelliSense.traceFieldInject = +'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.' |