From 7d8507743d15cc6a0768c286a6b7f9cf14d6b8c1 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 20 Dec 2017 00:42:03 +0300 Subject: [PATCH] add the missing CSS colors to codemirror parser --- edit/codemirror-default.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/edit/codemirror-default.js b/edit/codemirror-default.js index c486d388..51325327 100644 --- a/edit/codemirror-default.js +++ b/edit/codemirror-default.js @@ -112,6 +112,15 @@ Object.assign(CodeMirror.mimeModes['text/css'].valueKeywords, { 'isolate': true, }); + Object.assign(CodeMirror.mimeModes['text/css'].colorKeywords, { + 'darkgrey': true, + 'darkslategrey': true, + 'dimgrey': true, + 'grey': true, + 'lightgrey': true, + 'lightslategrey': true, + 'slategrey': true, + }); const MODE = { stylus: 'stylus',