diff --git a/vendor-overwrites/colorpicker/colorview.js b/vendor-overwrites/colorpicker/colorview.js index 93c7713d..036fdf7a 100644 --- a/vendor-overwrites/colorpicker/colorview.js +++ b/vendor-overwrites/colorpicker/colorview.js @@ -58,9 +58,8 @@ function registerHooks() { const mx = CodeMirror.modeExtensions.css; if (!mx || mx.token !== colorizeToken) { - CodeMirror.extendMode('css', { - token: colorizeToken, - }); + CodeMirror.extendMode('css', {token: colorizeToken}); + CodeMirror.extendMode('stylus', {token: colorizeToken}); } } @@ -128,7 +127,7 @@ if (string.charAt(start) !== '!') { const color = string.slice(start, pos); const colorValue = NAMED_COLORS.get(color.toLowerCase()); - return colorValue && {color, colorValue}; + return colorValue ? {color, colorValue} : colorizeAtom(stream); } }