Folding issue with nested rules on same line
Opened this issue · 1 comments
zanona commented
Apparently having the following rule structure, causes the code folding to break.
ul {
li { display: block; padding: .5em; a { color: red; } }
h4 { color: red; }
}
folded looks like:
+ul {...li { display: block; padding: .5em; a { color: red; } }
h4 { color: red; }
}
the only way to grant the code-folding will be correct is to split nested rules into different lines such as:
ul {
li { display: block; padding: .5em;
a { color: red; }
}
h4 { color: red; }
}
which properly folds to
+ul {...}
dhruvasagar commented
Well to be honest, it should really be written as :
ul {
li {
display: block;
padding: .5em;
a {
color: red;
}
}
h4 {
color: red;
}
}