Skip to content
Snippets Groups Projects
Commit 513ed029 authored by KwanEsq's avatar KwanEsq Committed by Marijn Haverbeke
Browse files

[css mode] missed indent() update for @document changes

parent 2b54fc48
No related branches found
No related tags found
No related merge requests found
......@@ -345,8 +345,8 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
if (cx.prev &&
(ch == "}" && (cx.type == "block" || cx.type == "top" || cx.type == "interpolation" || cx.type == "font_face") ||
ch == ")" && (cx.type == "parens" || cx.type == "media_parens") ||
ch == "{" && (cx.type == "at" || cx.type == "media"))) {
ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
ch == "{" && (cx.type == "at" || cx.type == "atBlock"))) {
indent = cx.indent - indentUnit;
cx = cx.prev;
}
......
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