mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
f2ec058602
In Lua patterns the hyphen works like a non-greedy version of Vim's `*`. - Use `%-` when you need a literal hyphen. - If you don't need a regular expression at all, use something like ``` string.find(text, pattern, 1, true) ``` so that the pattern is regarded as a plain, non-magical string. See [1] and [2] in the Lua manual. [1]: https://www.lua.org/manual/5.1/manual.html#pdf-Patterns [2]: https://www.lua.org/manual/5.1/manual.html#pdf-string.find |
||
---|---|---|
.. | ||
channels_spec.lua | ||
exit_spec.lua | ||
fileio_spec.lua | ||
job_spec.lua | ||
main_spec.lua | ||
path_spec.lua | ||
spellfile_spec.lua | ||
startup_spec.lua |