aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-05-20 12:17:02 +0100
committerrxi <rxi@users.noreply.github.com>2020-05-20 12:17:02 +0100
commit2651f1b5834ce143debb9493a716f0f2d2e26fad (patch)
treec7767b0e76a40337026141c3dae555b19e69391e /plugins
parent6d233a0a0dfaf513b63c2bf4cd5d513698f3752d (diff)
downloadlite-xl-plugins-2651f1b5834ce143debb9493a716f0f2d2e26fad.tar.gz
lite-xl-plugins-2651f1b5834ce143debb9493a716f0f2d2e26fad.zip
Fixed pattern on colorpreview so that, eg. `#define` doesn't match
Diffstat (limited to 'plugins')
-rw-r--r--plugins/colorpreview.lua4
1 files 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