From b034378cf58bea18ea1bdb4d63692a1336b5752b Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 3 Aug 2023 08:35:10 -0700 Subject: docs: luaref cleanup #24541 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - drop "luaref-" prefix in favor of "lua-" or nothing, where possible. - remove redundant "luaref--lang…" and "luaref-api…" tags. --- runtime/lua/vim/_meta/regex.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/lua/vim/_meta') diff --git a/runtime/lua/vim/_meta/regex.lua b/runtime/lua/vim/_meta/regex.lua index 4bca67797a..ab4f46d43f 100644 --- a/runtime/lua/vim/_meta/regex.lua +++ b/runtime/lua/vim/_meta/regex.lua @@ -18,9 +18,9 @@ function vim.regex(re) end local regex = {} -- luacheck: no unused --- Match the string against the regex. If the string should match the regex ---- precisely, surround the regex with `^` and `$`. If the was a match, the ---- byte indices for the beginning and end of the match is returned. When ---- there is no match, `nil` is returned. As any integer is truth-y, +--- precisely, surround the regex with `^` and `$`. If there was a match, the +--- byte indices for the beginning and end of the match are returned. When +--- there is no match, `nil` is returned. Because any integer is "truthy", --- `regex:match()` can be directly used as a condition in an if-statement. --- @param str string function regex:match_str(str) end -- cgit