summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-09-25 12:27:57 +0100
committerLewis Russell <lewis6991@gmail.com>2023-09-25 12:30:58 +0100
commit18989b42e4fdd6d299a96256d45221f1f244046a (patch)
tree5508b3290e774013de0f56f0c2ab7794cfe2915d /test/completion
parent00dc914c684751296ad74431cb4f6f0459c93e7d (diff)
downloadlua-language-server-18989b42e4fdd6d299a96256d45221f1f244046a.zip
feat: support param snippets with space
Currently LuaLS will expand: ```lua ---<??> local x = function (x, y) end ``` with: ```lua ---comment ---@param x any ---@param y any local x = function (x, y) end ``` This change adds a variation of this snippet to expand: ```lua --- <??> local x = function (x, y) end ``` with: ```lua --- comment --- @param x any --- @param y any local x = function (x, y) end ```
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/common.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index bd317259..7de1c325 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -3864,6 +3864,12 @@ local x = function (x, y) end
(EXISTS)
TEST [[
+--- <??>
+local x = function (x, y) end
+]]
+(EXISTS)
+
+TEST [[
local x = {
<??>
})