Skip to content

Commit eca373b

Browse files
committed
feat(mini.nvim): sync to 42dbeaa
1 parent ff06552 commit eca373b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mini.nvim/doc/mini-hipatterns.qmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,17 @@ Each entry defines single highlighter as a table with the following fields:
355355

356356
- Each element is matched and highlighted with the same highlight group.
357357

358+
Note: matching does not result in overlapping (sub)matches (similarly
359+
to how [cpo-c](https://neovim.io/doc/user/helptag.html?tag=cpo-c) works). For example, with line `xxxxxxx`:
360+
361+
- Pattern `xxx` matches columns 1-3, 4-6.
362+
363+
- Pattern `()xx()x` matches columns 1-2, 3-4, 5-6.
364+
365+
- Pattern `x()xx()` matches columns 2-3, 5-6.
366+
367+
- Pattern `x()x()x` matches columns 2-2, 4-4, 6-6.
368+
358369

359370
- <span class="help-syntax-keys">\<group\></span> `(string|function)` - name of highlight group to use. Can be either
360371
string or callable returning the string.

0 commit comments

Comments
 (0)