From 2651f1b5834ce143debb9493a716f0f2d2e26fad Mon Sep 17 00:00:00 2001 From: rxi Date: Wed, 20 May 2020 12:17:02 +0100 Subject: Fixed pattern on colorpreview so that, eg. `#define` doesn't match --- plugins/colorpreview.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/colorpreview.lua b/plugins/colorpreview.lua index 71f5c6d..dca419c 100644 --- a/plugins/colorpreview.lua +++ b/plugins/colorpreview.lua @@ -47,7 +47,7 @@ local draw_line_text = DocView.draw_line_text function DocView:draw_line_text(idx, x, y) draw_line_text(self, idx, x, y) - draw_color_previews(self, idx, x, y, "#(%x%x)(%x%x)(%x%x)%f[%X]", 16) - draw_color_previews(self, idx, x, y, "#(%x)(%x)(%x)%f[%X]", 16, true) -- support #fff css format + draw_color_previews(self, idx, x, y, "#(%x%x)(%x%x)(%x%x)%f[%W]", 16) + draw_color_previews(self, idx, x, y, "#(%x)(%x)(%x)%f[%W]", 16, true) -- support #fff css format draw_color_previews(self, idx, x, y, "rgba?%((%d+)%D+(%d+)%D+(%d+).-%)", 10) end -- cgit v1.2.3