mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 10:48:45 +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 = {
|
highlighters = {
|
||||||
hex_color = hi.gen_highlighter.hex_color({ priority = 2000 }),
|
hex_color = hi.gen_highlighter.hex_color({ priority = 2000 }),
|
||||||
shorthand = {
|
shorthand = {
|
||||||
pattern = "#%x%x%x%f[%X]",
|
pattern = "()#%x%x%x()%f[^%x%w]",
|
||||||
group = function(_, _, data)
|
group = function(_, _, data)
|
||||||
---@type string
|
---@type string
|
||||||
local match = data.full_match
|
local match = data.full_match
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue