another day
This commit is contained in:
parent
feb59d91c5
commit
1bbc50e3a9
27 changed files with 419 additions and 246 deletions
|
|
@ -30,6 +30,20 @@ return {
|
|||
return MiniHipatterns.compute_hex_color_group(correct, 'bg')
|
||||
end,
|
||||
},
|
||||
rgb = {
|
||||
pattern = '()Rgb%(%s*%d+,%s*%d+,%s*%d+%s*%)()',
|
||||
group = function(_, _, data)
|
||||
local _, _, r, g, b = data.full_match:find 'Rgb%(%s*(%d+),%s*(%d+),%s*(%d+)%s*%)'
|
||||
local correct = string.format('#%02x%02x%02x', r, g, b)
|
||||
if correct:len() ~= 7 then
|
||||
return
|
||||
end
|
||||
return MiniHipatterns.compute_hex_color_group(correct, 'bg')
|
||||
end,
|
||||
extmark_opts = {
|
||||
priority = 210,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue