neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4db77017fb7ab9321817674a5f5533df4cd03f3f
parent 5198a2555de4917177f229e4a0496e2448d9fb84
Author: Maria José Solano <majosolano99@gmail.com>
Date:   Sun, 24 Sep 2023 23:14:06 -0700

fix(meta): add nil return types to lpeg functions

Diffstat:
Mruntime/lua/vim/_meta/lpeg.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runtime/lua/vim/_meta/lpeg.lua b/runtime/lua/vim/_meta/lpeg.lua @@ -42,7 +42,7 @@ local Pattern = {} --- @param pattern vim.lpeg.Pattern --- @param subject string --- @param init? integer ---- @return integer|vim.lpeg.Capture +--- @return integer|vim.lpeg.Capture|nil function vim.lpeg.match(pattern, subject, init) end --- Matches the given `pattern` against the `subject` string. If the match succeeds, returns the @@ -64,7 +64,7 @@ function vim.lpeg.match(pattern, subject, init) end --- --- @param subject string --- @param init? integer ---- @return integer|vim.lpeg.Capture +--- @return integer|vim.lpeg.Capture|nil function Pattern:match(subject, init) end --- Returns the string `"pattern"` if the given value is a pattern, otherwise `nil`.