From 2c46d1b45af0baba87804f451c566de256c8d390 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 13 Apr 2017 14:41:42 +0200 Subject: [PATCH] [css mode] Prevent SCSS ': {' from being treated like a single token Closes #4688 --- mode/css/css.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode/css/css.js b/mode/css/css.js index 02cc93d9cf..7f8c46ebb6 100644 --- a/mode/css/css.js +++ b/mode/css/css.js @@ -748,8 +748,8 @@ CodeMirror.defineMode("css", function(config, parserConfig) { } }, ":": function(stream) { - if (stream.match(/\s*\{/)) - return [null, "{"]; + if (stream.match(/\s*\{/, false)) + return [null, null] return false; }, "$": function(stream) {