mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(doc): improve doc generation of types using lpeg
Added a lpeg grammar for LuaCATS and use it in lua2dox.lua
This commit is contained in:
committed by
Lewis Russell
parent
a767c046f4
commit
2f9ee9b6cf
@@ -875,7 +875,7 @@ end
|
||||
--- a.b.c = 1
|
||||
--- ```
|
||||
---
|
||||
---@param createfn function?(key:any):any Provides the value for a missing `key`.
|
||||
---@param createfn? fun(key:any):any Provides the value for a missing `key`.
|
||||
---@return table # Empty table with `__index` metamethod.
|
||||
function vim.defaulttable(createfn)
|
||||
createfn = createfn or function(_)
|
||||
|
||||
Reference in New Issue
Block a user