From b8506e1e45ee269a2afc2d06103df03b8c559318 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 7 Jan 2018 11:45:35 +0300 Subject: [PATCH] find colors in comments/strings regardless of overlays --- vendor-overwrites/colorpicker/colorview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor-overwrites/colorpicker/colorview.js b/vendor-overwrites/colorpicker/colorview.js index f6750713..8b695767 100644 --- a/vendor-overwrites/colorpicker/colorview.js +++ b/vendor-overwrites/colorpicker/colorview.js @@ -575,7 +575,7 @@ function getColor(token) { const {style} = getStyleAtPos({styles, pos: start + 1}) || {}; - const allowed = ALLOWED_STYLES.includes(style); + const allowed = !style || ALLOWED_STYLES.includes(style.split(' ', 1)[0]); if (!allowed) return; if (text[start + token.length] === '(') {