From 3ab0c3bbb82e4aeb694cd0bc511fd3b43583c553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 2 Dec 2021 17:48:41 +0800 Subject: fix postfix --- test/completion/common.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/completion/common.lua') 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 = '', + } + } + }, +} -- cgit v1.2.3