Skip to content

Commit 38ad313

Browse files
committed
resolve #1255 update changelog for doc.enum
1 parent e7996f5 commit 38ad313

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

changelog.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,22 @@
1313
```
1414
* `NEW` `LuaDoc`: `---@source`:
1515
```lua
16+
-- Also supports absolute path or relative path (based on current file path)
1617
---@source file:///xxx.c:50:20
17-
XXX = 1 -- when finding definitions of `XXX`, returns `file:///xxx.c:50:20` instead here
18+
XXX = 1 -- when finding definitions of `XXX`, returns `file:///xxx.c:50:20` instead here.
19+
```
20+
* `NEW` `LuaDoc`: `---@enum`:
21+
```lua
22+
---@enum animal
23+
Animal = {
24+
Cat = 1,
25+
Dog = 2,
26+
}
27+
28+
---@param x animal
29+
local function f(x) end
30+
31+
f() -- suggests `Animal.Cat`, `Animal.Dog`, `1`, `2` as the first parameter
1832
```
1933
* `NEW` diagnostics:
2034
* `unknown-operator`

0 commit comments

Comments
 (0)