From d2826d92f66ea31cfd11c4815e15bea7cc907694 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 23 Nov 2017 13:01:27 +0300 Subject: [PATCH] CodeMirror css mode: recognize "isolation" --- edit/codemirror-default.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/edit/codemirror-default.js b/edit/codemirror-default.js index 48f09102..9a6142f6 100644 --- a/edit/codemirror-default.js +++ b/edit/codemirror-default.js @@ -100,7 +100,13 @@ }); } - CodeMirror.mimeModes['text/css'].propertyKeywords['mix-blend-mode'] = true; + Object.assign(CodeMirror.mimeModes['text/css'].propertyKeywords, { + 'mix-blend-mode': true, + 'isolation': true, + }); + Object.assign(CodeMirror.mimeModes['text/css'].valueKeywords, { + 'isolate': true, + }); const MODE = { stylus: 'stylus',