summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-10-10 22:53:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-10-10 22:53:18 +0800
commitf156994cb041cc9022e5af5cf9628a3a97119347 (patch)
tree69384e8af68ad4aa6e345ac36a0fb4b388217871 /test/definition
parent046b6785bc62ad8f8b0b95f18cf9cf39fa3bd346 (diff)
downloadlua-language-server-f156994cb041cc9022e5af5cf9628a3a97119347.zip
支持函数定义
Diffstat (limited to 'test/definition')
-rw-r--r--test/definition/init.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/definition/init.lua b/test/definition/init.lua
index 9ce0b9e7..85d5b820 100644
--- a/test/definition/init.lua
+++ b/test/definition/init.lua
@@ -12,6 +12,16 @@ local function test(script)
end
test [[
-local <!a!>
-<?a?> = 1
+local <!x!>
+<?x?> = 1
+]]
+
+test [[
+local <!x!> = 1
+<?x?> = 1
+]]
+
+test [[
+function <!x!> () end
+<?x?> = 1
]]