From 18989b42e4fdd6d299a96256d45221f1f244046a Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 25 Sep 2023 12:27:57 +0100 Subject: 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 ``` --- test/completion/common.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/completion/common.lua') 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 @@ -3863,6 +3863,12 @@ local x = function (x, y) end ]] (EXISTS) +TEST [[ +--- +local x = function (x, y) end +]] +(EXISTS) + TEST [[ local x = { -- cgit v1.2.3