summaryrefslogtreecommitdiff
path: root/server/libs
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-17 13:50:38 +0800
committersumneko <sumneko@hotmail.com>2019-04-17 13:50:38 +0800
commitdfce55a48eb5f7f69bd64eba2b523b4e15e7e342 (patch)
tree21104eb9f101cdfc73657b2306bf6b2ddbf3fe0e /server/libs
parent23ce4d049c7076edcd700fbac01554069c5de554 (diff)
downloadlua-language-server-dfce55a48eb5f7f69bd64eba2b523b4e15e7e342.zip
特殊处理pairs,使其返回真正的next
Diffstat (limited to 'server/libs')
-rw-r--r--server/libs/@lua/basic.lni23
1 files changed, 3 insertions, 20 deletions
diff --git a/server/libs/@lua/basic.lni b/server/libs/@lua/basic.lni
index 311f699f..14320a58 100644
--- a/server/libs/@lua/basic.lni
+++ b/server/libs/@lua/basic.lni
@@ -303,6 +303,7 @@ type = '...'
optional = after
[next]
+special = next
[[.args]]
name = 'table'
type = 'table'
@@ -315,30 +316,12 @@ name = 'key'
name = 'value'
[pairs]
+special = pairs
[[.args]]
name = 't'
type = 'table'
[[.returns]]
-name = 'next'
-type = 'function'
-args = {
- 1 = {
- name = 'table',
- type = 'table',
- },
- 2 = {
- name = 'index',
- optional = 'self',
- },
-}
-returns = {
- 1 = {
- name = 'key',
- },
- 2 = {
- name = 'value',
- },
-}
+name = '@next'
``````````
name = 't'
type = 'table'