another day

This commit is contained in:
Iwaniuk Krzysztof 2024-06-19 00:41:29 +02:00
parent feb59d91c5
commit 1bbc50e3a9
27 changed files with 419 additions and 246 deletions

View file

@ -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,
},
},
},
}