summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-12-02 17:48:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-12-02 17:48:41 +0800
commit3ab0c3bbb82e4aeb694cd0bc511fd3b43583c553 (patch)
tree184f9ac85f48d2c3dda45536693e4ef098b7f3c1 /test
parent9f236d0485ac4cee2b62261b84ef93f473596495 (diff)
downloadlua-language-server-3ab0c3bbb82e4aeb694cd0bc511fd3b43583c553.zip
fix postfix
Diffstat (limited to 'test')
-rw-r--r--test/completion/common.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index 60a5f2ac..3a3d1d46 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3013,3 +3013,27 @@ xx++<??>
}
},
}
+
+TEST [[
+fff(function ()
+ xx@xpcall<??>
+end)
+]]
+{
+ [1] = {
+ label = 'xpcall',
+ kind = define.CompletionItemKind.Event,
+ textEdit = {
+ start = 10007,
+ finish = 10013,
+ newText = 'xpcall(xx, ${1:debug.traceback}$2)$0',
+ },
+ additionalTextEdits = {
+ {
+ start = 10004,
+ finish = 10007,
+ newText = '',
+ }
+ }
+ },
+}