summaryrefslogtreecommitdiff
path: root/server/libs/lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 18:34:36 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 18:34:36 +0800
commitb311bf5b0332518b8c9870d90557ca09eb19ee26 (patch)
treeceaefc5a601243b1b17e036e4bc9de2fe78c2922 /server/libs/lua
parent10aafe270e4a3de3595c002676fc559b78ea3106 (diff)
downloadlua-language-server-b311bf5b0332518b8c9870d90557ca09eb19ee26.zip
生下的Lua 5.4 API
Diffstat (limited to 'server/libs/lua')
-rw-r--r--server/libs/lua/math.lni13
-rw-r--r--server/libs/lua/string.lni24
2 files changed, 37 insertions, 0 deletions
diff --git a/server/libs/lua/math.lni b/server/libs/lua/math.lni
index 6458ccf4..cd24c094 100644
--- a/server/libs/lua/math.lni
+++ b/server/libs/lua/math.lni
@@ -172,6 +172,19 @@ type = 'number'
name = 'x'
type = 'integer'
+["randomseed Lua 5.4"]
+name = 'randomseed'
+version = 'Lua 5.4'
+[[.args]]
+name = 'x'
+type = 'integer'
+optional = 'after'
+``````````
+name = 'y'
+type = 'integer'
+optional = 'after'
+default = 0
+
[sin]
[[.args]]
name = 'x'
diff --git a/server/libs/lua/string.lni b/server/libs/lua/string.lni
index d1754b74..a45be1d1 100644
--- a/server/libs/lua/string.lni
+++ b/server/libs/lua/string.lni
@@ -111,6 +111,30 @@ returns = {
},
}
+["gmatch Lua 5.4"]
+name = 'gmatch'
+version = 'Lua 5.4'
+[[.args]]
+type = 'string'
+``````````
+name = 'pattern'
+type = 'string'
+``````````
+name = 'init'
+type = 'integer'
+optional = 'after'
+default = 1
+[[.returns]]
+type = 'function'
+returns = {
+ 1 = {
+ type = 'string'
+ },
+ 2 = {
+ type = '...'
+ },
+}
+
[gsub]
[[.args]]
type = 'string'