diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-21 17:16:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-21 17:16:30 +0800 |
commit | aeac4c08a5a6ed1c832ca62aad0190e660887abe (patch) | |
tree | ce90e38b7cb4c3ebb244eed2382f5c58a7165b19 /server/test/signature | |
parent | 6dca52b18108d11ab08a8b951eb98115c06b5640 (diff) | |
download | lua-language-server-aeac4c08a5a6ed1c832ca62aad0190e660887abe.zip |
因为自动配对括号,正常语法也要尝试参数提示
Diffstat (limited to 'server/test/signature')
-rw-r--r-- | server/test/signature/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua index 855ffa24..0c343384 100644 --- a/server/test/signature/init.lua +++ b/server/test/signature/init.lua @@ -33,3 +33,14 @@ x(@ label = "function x(a: any, b: any)", arg = 'a: any' } + +TEST [[ +local function x(a, b) +end + +x(@) +]] +{ + label = "function x(a: any, b: any)", + arg = 'a: any' +} |