mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -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 |
||
---|---|---|
.. | ||
altscreen_spec.lua | ||
api_spec.lua | ||
buffer_spec.lua | ||
cursor_spec.lua | ||
edit_spec.lua | ||
ex_terminal_spec.lua | ||
helpers.lua | ||
highlight_spec.lua | ||
mouse_spec.lua | ||
scrollback_spec.lua | ||
tui_spec.lua | ||
window_spec.lua | ||
window_split_tab_spec.lua |