Commit ff330530 authored by Simen Heggestøyl's avatar Simen Heggestøyl

Fix indentation bug in multi-line CSS selectors

* lisp/textmodes/css-mode.el (css--colon-inside-selector-p): Fix
indentation of multi-line CSS selectors that include both a
pseudo-class and parenthesis.

* test/manual/indent/css-mode.css: Add test for the above change.
parent 8968be82
......@@ -1149,7 +1149,7 @@ This function is intended to be good enough to help SMIE during
tokenization, but should not be regarded as a reliable function
for determining whether point is within a selector."
(save-excursion
(re-search-forward "[{};)]" nil t)
(re-search-forward "[{};]" nil t)
(eq (char-before) ?\{)))
(defun css--colon-inside-funcall ()
......
......@@ -66,6 +66,16 @@ div::before {
);
}
/* Multi-line selector including both a pseudo-class and
parenthesis. */
.form-group:not(.required) label,
.birth-date .row > * {
&::after {
display: inline;
font-weight: normal;
}
}
@font-face {
src: url("Sans-Regular.eot") format("eot"),
url("Sans-Regular.woff") format("woff"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment