diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-18 21:01:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-18 21:01:07 +0800 |
commit | 38ad313a97e4c191dfefe5831ffb373242f36fa2 (patch) | |
tree | 441fa527513197a8b539a571f385b46bb6c638a5 /changelog.md | |
parent | e7996f5cb580ac65ce8cf92da153a6ab0f8af3b6 (diff) | |
download | lua-language-server-38ad313a97e4c191dfefe5831ffb373242f36fa2.zip |
resolve #1255 update changelog for `doc.enum`
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 67fdb574..d5f2eaeb 100644 --- a/changelog.md +++ b/changelog.md @@ -13,8 +13,22 @@ ``` * `NEW` `LuaDoc`: `---@source`: ```lua + -- Also supports absolute path or relative path (based on current file path) ---@source file:///xxx.c:50:20 - XXX = 1 -- when finding definitions of `XXX`, returns `file:///xxx.c:50:20` instead here + XXX = 1 -- when finding definitions of `XXX`, returns `file:///xxx.c:50:20` instead here. + ``` +* `NEW` `LuaDoc`: `---@enum`: + ```lua + ---@enum animal + Animal = { + Cat = 1, + Dog = 2, + } + + ---@param x animal + local function f(x) end + + f() -- suggests `Animal.Cat`, `Animal.Dog`, `1`, `2` as the first parameter ``` * `NEW` diagnostics: * `unknown-operator` |