diff options
author | James Trew <66286082+jamestrew@users.noreply.github.com> | 2024-10-03 10:45:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 03:45:51 -0700 |
commit | 385fbfb3e739b457027b469782678f86eefdf7fc (patch) | |
tree | 8e604da45cc3f172e60904631da5d16c64debee5 /runtime/lua/vim | |
parent | c6abc97006eee7fc89baefad2e1bddb248187f2e (diff) | |
download | rneovim-385fbfb3e739b457027b469782678f86eefdf7fc.tar.gz rneovim-385fbfb3e739b457027b469782678f86eefdf7fc.tar.bz2 rneovim-385fbfb3e739b457027b469782678f86eefdf7fc.zip |
docs: improve luacats support #30580
Some composite/compound types even as basic as `(string|number)[]` are
not currently supported by the luacats LPEG grammar used by gen_vimdoc.
It would be parsed & rendered as just `string|number`.
Changeset adds better support for these types.
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/_meta/builtin.lua | 4 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/rpc.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/_meta/builtin.lua b/runtime/lua/vim/_meta/builtin.lua index 3aca3cdfa5..1a3f272290 100644 --- a/runtime/lua/vim/_meta/builtin.lua +++ b/runtime/lua/vim/_meta/builtin.lua @@ -182,8 +182,8 @@ function vim.str_utf_end(str, index) end --- that sequence. --- @param str string --- @param index? integer ---- @return integer UTF-32 index ---- @return integer UTF-16 index +--- @return integer # UTF-32 index +--- @return integer # UTF-16 index function vim.str_utfindex(str, index) end --- The result is a String, which is the text {str} converted from diff --git a/runtime/lua/vim/lsp/rpc.lua b/runtime/lua/vim/lsp/rpc.lua index bc24501eae..e79dbd2db3 100644 --- a/runtime/lua/vim/lsp/rpc.lua +++ b/runtime/lua/vim/lsp/rpc.lua @@ -550,7 +550,7 @@ local function new_client(dispatchers, transport) end ---@class vim.lsp.rpc.PublicClient ----@field request fun(method: string, params: table?, callback: fun(err: lsp.ResponseError|nil, result: any), notify_reply_callback: fun(integer)|nil):boolean,integer? see |vim.lsp.rpc.request()| +---@field request fun(method: string, params: table?, callback: fun(err: lsp.ResponseError|nil, result: any), notify_reply_callback: fun(message_id: integer)|nil):boolean,integer? see |vim.lsp.rpc.request()| ---@field notify fun(method: string, params: any):boolean see |vim.lsp.rpc.notify()| ---@field is_closing fun(): boolean ---@field terminate fun() |