summaryrefslogtreecommitdiff
path: root/server/libs
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-07 17:11:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-07 17:11:26 +0800
commitf3260ceb043848c26dd7ef45d0a5210ea6d4a5ba (patch)
tree90a0faf0de315b175154f23ba3287c9ea86aaf95 /server/libs
parent2b03350caa83e66d6bb4cd73be3809ac9cea2225 (diff)
downloadlua-language-server-f3260ceb043848c26dd7ef45d0a5210ea6d4a5ba.zip
hover支持变量对象
Diffstat (limited to 'server/libs')
-rw-r--r--server/libs/lua53/string.lni33
1 files changed, 31 insertions, 2 deletions
diff --git a/server/libs/lua53/string.lni b/server/libs/lua53/string.lni
index 0c1fc2b8..4b22ef16 100644
--- a/server/libs/lua53/string.lni
+++ b/server/libs/lua53/string.lni
@@ -1,5 +1,34 @@
+[string]
+type = 'table'
+[[.source]]
+type = 'global'
+[[.source]]
+type = 'library'
+name = 'string'
+
[default]
type = 'function'
+[[.parent]]
+type = 'global'
+name = 'string'
+[[.parent]]
+type = 'library'
+name = 'string'
+[[.parent]]
+type = 'object'
+name = 'string'
-[string]
-type = 'table'
+[sub]
+[[.args]]
+name = 's'
+type = 'string'
+[[.args]]
+name = 'i'
+type = 'integer'
+[[.args]]
+name = 'j'
+type = 'integer'
+optional = 'self'
+default = -1
+[[.returns]]
+type = 'string'