Skip to content
Snippets Groups Projects
Commit 2c46d1b4 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[css mode] Prevent SCSS ': {' from being treated like a single token

Closes #4688
parent 9507a6e5
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment