mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 02:38:50 +02:00
fix(hi-patterns): correct regex for shorthand hex colors. See ##2562
This commit is contained in:
parent
166942251d
commit
7415231855
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ M.plugin = {
|
|||
highlighters = {
|
||||
hex_color = hi.gen_highlighter.hex_color({ priority = 2000 }),
|
||||
shorthand = {
|
||||
pattern = "#%x%x%x%f[%X]",
|
||||
pattern = "()#%x%x%x()%f[^%x%w]",
|
||||
group = function(_, _, data)
|
||||
---@type string
|
||||
local match = data.full_match
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue