fix(hipatterns): don't color #add (use it too often as a private function in TS)

This commit is contained in:
Folke Lemaitre 2026-05-18 12:32:49 +02:00
parent 7c1301b895
commit dc6240f4d5
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -39,6 +39,9 @@ M.plugin = {
group = function(_, _, data)
---@type string
local match = data.full_match
if match == "#add" then
return
end
local r, g, b = match:sub(2, 2), match:sub(3, 3), match:sub(4, 4)
local hex_color = "#" .. r .. r .. g .. g .. b .. b