summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-14 18:53:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-14 18:53:34 +0800
commit2ded515ba32c01359200d3fe725b0fd062cb1634 (patch)
treed282c2b800f209237a658c4fbeea0e3e60a35327
parent33ad259343e0710acd009bdf7159c013c160128e (diff)
downloadlua-language-server-2ded515ba32c01359200d3fe725b0fd062cb1634.zip
更新配置
-rw-r--r--server/libs/lua53/coroutine.lni85
1 files changed, 83 insertions, 2 deletions
diff --git a/server/libs/lua53/coroutine.lni b/server/libs/lua53/coroutine.lni
index 7f575257..22a30ec5 100644
--- a/server/libs/lua53/coroutine.lni
+++ b/server/libs/lua53/coroutine.lni
@@ -1,5 +1,86 @@
+[coroutine]
+type = 'table'
+[[.source]]
+type = 'global'
+[[.source]]
+type = 'library'
+name = 'coroutine'
+
[default]
type = 'function'
+[[.parent]]
+type = 'global'
+name = 'coroutine'
+[[.parent]]
+type = 'library'
+name = 'coroutine'
-[coroutine]
-type = 'table'
+[create]
+[[.args]]
+name = 'f'
+type = 'function'
+[[.returns]]
+name = 'coroutine'
+type = 'thread'
+
+[isyieldable]
+[[.returns]]
+type = 'boolean'
+
+[resume]
+[[.args]]
+name = 'co'
+type = 'thread'
+[[.args]]
+name = 'val1'
+optional = 'after'
+[[.args]]
+type = '...'
+[[.returns]]
+name = 'success'
+type = 'boolean'
+[[.returns]]
+name = 'result'
+[[.returns]]
+type = '...'
+
+[running]
+[[.returns]]
+name = 'running_co'
+type = 'thread'
+[[.returns]]
+name = 'is_main'
+type = 'boolean'
+
+[status]
+[[.args]]
+name = 'co'
+type = 'thread'
+[[.returns]]
+name = 'status'
+type = 'string'
+[[.enums]]
+name = 'status'
+enum = 'running'
+[[.enums]]
+name = 'status'
+enum = 'suspended'
+[[.enums]]
+name = 'status'
+enum = 'normal'
+[[.enums]]
+name = 'status'
+enum = 'dead'
+
+[wrap]
+[[.args]]
+name = 'f'
+type = 'function'
+[[.returns]]
+type = '...'
+
+[yield]
+[[.args]]
+type = '...'
+[[.returns]]
+type = '...'