mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
vim-patch:a35235e824bb (#27598)
runtime(doc) Update help text for matchbufline() and matchstrlist()
closes: vim/vim#14080
a35235e824
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -6546,6 +6546,7 @@ M.funcs = {
|
||||
Note that when {count} is added the way {start} works changes,
|
||||
see above.
|
||||
|
||||
*match-pattern*
|
||||
See |pattern| for the patterns that are accepted.
|
||||
The 'ignorecase' option is used to set the ignore-caseness of
|
||||
the pattern. 'smartcase' is NOT used. The matching is always
|
||||
@@ -6726,6 +6727,9 @@ M.funcs = {
|
||||
This function works only for loaded buffers. First call
|
||||
|bufload()| if needed.
|
||||
|
||||
See |match-pattern| for information about the effect of some
|
||||
option settings on the pattern.
|
||||
|
||||
When {buf} is not a valid buffer, the buffer is not loaded or
|
||||
{lnum} or {end} is not valid then an error is given and an
|
||||
empty |List| is returned.
|
||||
@@ -6960,6 +6964,9 @@ M.funcs = {
|
||||
submatches a List of submatches. Present only if
|
||||
"submatches" is set to v:true in {dict}.
|
||||
|
||||
See |match-pattern| for information about the effect of some
|
||||
option settings on the pattern.
|
||||
|
||||
Example: >vim
|
||||
:echo matchstrlist(['tik tok'], '\<\k\+\>')
|
||||
[{'idx': 0, 'byteidx': 0, 'text': 'tik'}, {'idx': 0, 'byteidx': 4, 'text': 'tok'}]
|
||||
|
Reference in New Issue
Block a user