bug: highlight is broken with multiple capture groups in opts.highlight.pattern
#326
Open
4 tasks done
opts.highlight.pattern
#326
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.2 Build type: RelWithDebInfo LuaJIT 2.1.1727870382
Operating system/version
Artix Linux 6.11.2-artix1-1
Describe the bug
I'm trying to match optional
(nickname)
after keyword, but I can't get it to highlight (either it doesn't work at all, or breaks default or highlights only part of parenthesis) [or I can't just write regex 🙃). I think it might be connected with fact, that I'm using extra capture group for optional(nick)
, but todo-comments expects at most 2?I've added this prints for debugging
And on file
I got
Interestingly, if I use
vim.fn.matchadd()
it works, like this:But I don't like it, since it ignores any context, is very limited etc.
Steps To Reproduce
FIXME(cool nickname): foo
andFIXME: foo
. Only second one should be highlighted.Expected Behavior
Multiple capture groups are respected
Repro
The text was updated successfully, but these errors were encountered: