Include : in highlight patterns
This commit is contained in:
@@ -101,10 +101,10 @@ Map('n', '<leader>sd', MiniExtra.pickers.diagnostic, { desc = "Search Diagnostic
|
|||||||
require('mini.cursorword').setup() -- highlight words beneath the cursor
|
require('mini.cursorword').setup() -- highlight words beneath the cursor
|
||||||
require('mini.hipatterns').setup({
|
require('mini.hipatterns').setup({
|
||||||
highlighters = {
|
highlighters = {
|
||||||
bug = { pattern = '%f[%w]()BUG()%f[%W]', group = '@comment.error' },
|
bug = { pattern = '%f[%w]()BUG:()%f[^%w:]', group = '@comment.error' },
|
||||||
warn = { pattern = '%f[%w]()WARN()%f[%W]', group = '@comment.warning' },
|
warn = { pattern = '%f[%w]()WARN:()%f[^%w:]', group = '@comment.warning' },
|
||||||
todo = { pattern = '%f[%w]()TODO()%f[%W]', group = '@comment.todo' },
|
todo = { pattern = '%f[%w]()TODO:()%f[^%w:]', group = '@comment.todo' },
|
||||||
note = { pattern = '%f[%w]()NOTE()%f[%W]', group = '@comment.note' },
|
note = { pattern = '%f[%w]()NOTE:()%f[^%w:]', group = '@comment.note' },
|
||||||
|
|
||||||
-- Highlight hex color strings (`#rrggbb`) using that color
|
-- Highlight hex color strings (`#rrggbb`) using that color
|
||||||
-- hex_color = MiniHipatterns.gen_highlighter.hex_color(),
|
-- hex_color = MiniHipatterns.gen_highlighter.hex_color(),
|
||||||
|
|||||||
Reference in New Issue
Block a user