summaryrefslogtreecommitdiff
path: root/server/libs
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-17 15:48:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-17 15:48:33 +0800
commitd100653958dfaa5a719f05deaf0557d178fe8a86 (patch)
tree60fa928339ecfb288bfcea64f4ef0fbc7228f588 /server/libs
parent4914f316d042aa907900170dc9b2adb0134f93a8 (diff)
downloadlua-language-server-d100653958dfaa5a719f05deaf0557d178fe8a86.zip
更新库
Diffstat (limited to 'server/libs')
-rw-r--r--server/libs/lua53/table.lni78
-rw-r--r--server/libs/lua53/utf8.lni95
2 files changed, 171 insertions, 2 deletions
diff --git a/server/libs/lua53/table.lni b/server/libs/lua53/table.lni
index c718e534..661a5100 100644
--- a/server/libs/lua53/table.lni
+++ b/server/libs/lua53/table.lni
@@ -15,6 +15,27 @@ name = 'table'
type = 'library'
name = 'table'
+[concat]
+[[.args]]
+name = 'list'
+type = 'table'
+[[.args]]
+name = 'sep'
+type = 'string'
+optional = 'after'
+default = ''
+[[.args]]
+name = 'i'
+type = 'integer'
+optional = 'after'
+default = 1
+[[.args]]
+name = 'j'
+type = 'integer'
+optional = 'self'
+[[.returns]]
+type = 'string'
+
[insert]
[[.args]]
name = 'list'
@@ -26,3 +47,60 @@ optional = 'self'
[[.args]]
name = 'value'
type = 'any'
+
+[move]
+[[.args]]
+name = 'a1'
+type = 'table'
+[[.args]]
+name = 'f'
+type = 'integer'
+[[.args]]
+name = 'e'
+type = 'integer'
+[[.args]]
+name = 't'
+type = 'integer'
+[[.args]]
+name = 'a2'
+type = 'table'
+optional = 'self'
+
+[pack]
+[[.args]]
+type = '...'
+[[.returns]]
+type = 'table'
+
+[remove]
+[[.args]]
+name = 'list'
+type = 'table'
+[[.args]]
+name = 'pos'
+type = 'integer'
+optional = 'self'
+[[.returns]]
+
+[sort]
+[[.args]]
+name = 'list'
+type = 'table'
+[[.args]]
+name = 'comp'
+type = 'function'
+optional = 'self'
+
+[unpack]
+[[.args]]
+name = 'list'
+type = 'table'
+[[.args]]
+name = 'i'
+type = 'integer'
+optional = 'after'
+type = 1
+[[.args]]
+name = 'j'
+type = 'integer'
+optional = 'self'
diff --git a/server/libs/lua53/utf8.lni b/server/libs/lua53/utf8.lni
index fc9cf935..effd9814 100644
--- a/server/libs/lua53/utf8.lni
+++ b/server/libs/lua53/utf8.lni
@@ -1,5 +1,96 @@
+[utf8]
+type = 'table'
+[[.source]]
+type = 'global'
+[[.source]]
+type = 'library'
+name = 'utf8'
+
<default>
type = 'function'
+[[.parent]]
+type = 'global'
+name = 'utf8'
+[[.parent]]
+type = 'library'
+name = 'utf8'
-[utf8]
-type = 'table'
+[char]
+[[.args]]
+name = 'code'
+type = 'integer'
+[[.args]]
+type = '...'
+[[.returns]]
+type = 'string'
+
+[charpattern]
+type = 'string'
+value = [=[[\0-\x7F\xC2-\xF4][\x80-\xBF]*]=]
+
+[codes]
+[[.args]]
+type = 'string'
+[[.returns]]
+type = 'function'
+returns = {
+ 1 = {
+ name = 'p',
+ type = 'integer',
+ },
+ 2 = {
+ name = 'c',
+ type = 'integer',
+ }
+}
+
+[codepoint]
+[[.args]]
+type = 'string'
+[[.args]]
+name = 'i'
+type = 'integer'
+optional = 'after'
+default = 1
+[[.args]]
+name = 'j'
+type = 'integer'
+optional = 'self'
+[[.returns]]
+name = 'code'
+type = 'integer'
+[[.returns]]
+type = '...'
+
+[len]
+[[.args]]
+type = 'string'
+[[.args]]
+name = 'i'
+type = 'integer'
+optional = 'after'
+default = 1
+[[.args]]
+name = 'j'
+type = 'integer'
+optional = 'self'
+default = -1
+[[.returns]]
+type = 'integer'
+[[.returns]]
+name = 'errpos'
+type = 'integer'
+optional = 'self'
+
+[offset]
+[[.args]]
+type = 'string'
+[[.args]]
+name = 'n'
+type = 'integer'
+[[.args]]
+name = 'i'
+type = 'integer'
+[[.returns]]
+name = 'p'
+type = 'integer'