aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/re.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-04-26 14:07:47 +0100
committerLewis Russell <me@lewisr.dev>2024-04-26 15:13:06 +0100
commitb8273c9a339626078d49e706d882878090b07d42 (patch)
tree92684f3aff0b70b317119f1b955e93b5a25b7e90 /runtime/lua/vim/_meta/re.lua
parentc5b9fb2f256516398592c81f496dae75a036b18e (diff)
downloadrneovim-b8273c9a339626078d49e706d882878090b07d42.tar.gz
rneovim-b8273c9a339626078d49e706d882878090b07d42.tar.bz2
rneovim-b8273c9a339626078d49e706d882878090b07d42.zip
fix: lua annotations
Diffstat (limited to 'runtime/lua/vim/_meta/re.lua')
-rw-r--r--runtime/lua/vim/_meta/re.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_meta/re.lua b/runtime/lua/vim/_meta/re.lua
index 14c94c7824..9721e6f8c8 100644
--- a/runtime/lua/vim/_meta/re.lua
+++ b/runtime/lua/vim/_meta/re.lua
@@ -30,8 +30,8 @@ function vim.re.compile(string, defs) end
--- @param subject string
--- @param pattern vim.lpeg.Pattern|string
--- @param init? integer
---- @return integer|nil the index where the occurrence starts, nil if no match
---- @return integer|nil the index where the occurrence ends, nil if no match
+--- @return integer|nil : the index where the occurrence starts, nil if no match
+--- @return integer|nil : the index where the occurrence ends, nil if no match
function vim.re.find(subject, pattern, init) end
--- Does a global substitution, replacing all occurrences of {pattern} in the given {subject} by