Skip to content

Commit

Permalink
[css mode] Prevent SCSS ': {' from being treated like a single token
Browse files Browse the repository at this point in the history
Closes #4688
  • Loading branch information
marijnh committed Apr 13, 2017
1 parent 9507a6e commit 2c46d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mode/css/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2c46d1b

Please sign in to comment.