diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-02 17:48:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-02 17:48:41 +0800 |
commit | 3ab0c3bbb82e4aeb694cd0bc511fd3b43583c553 (patch) | |
tree | 184f9ac85f48d2c3dda45536693e4ef098b7f3c1 /test | |
parent | 9f236d0485ac4cee2b62261b84ef93f473596495 (diff) | |
download | lua-language-server-3ab0c3bbb82e4aeb694cd0bc511fd3b43583c553.zip |
fix postfix
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/common.lua | 24 |
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 = '', + } + } + }, +} |