fix(lua): vim.regex():match_str abort in Luv callback #41008

(cherry picked from commit 80cd482577)
This commit is contained in:
Justin M. Keyes
2026-07-27 07:01:54 -04:00
committed by github-actions[bot]
parent b6832a53b4
commit 69e2fc26f0
4 changed files with 32 additions and 5 deletions

View File

@@ -4,8 +4,9 @@ error('Cannot require a meta file')
-- luacheck: no unused args
--- @brief Vim regexes can be used directly from Lua. Currently they only allow
--- matching within a single line.
--- @brief The `vim.regex` interface allows Lua code to use Vim regexes.
--- - Matches within a single line.
--- - Does not check for interrupts (CTRL-C), so can be used from an |api-fast| context.
--- Parses the Vim regex `re` and returns a regex object. Regexes are "magic" and case-sensitive by
--- default, regardless of 'magic' and 'ignorecase'. They can be controlled with flags, see |/magic|