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.
This commit is contained in:
parent
8968be822e
commit
ff33053012
2 changed files with 11 additions and 1 deletions
|
@ -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
|
tokenization, but should not be regarded as a reliable function
|
||||||
for determining whether point is within a selector."
|
for determining whether point is within a selector."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(re-search-forward "[{};)]" nil t)
|
(re-search-forward "[{};]" nil t)
|
||||||
(eq (char-before) ?\{)))
|
(eq (char-before) ?\{)))
|
||||||
|
|
||||||
(defun css--colon-inside-funcall ()
|
(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 {
|
@font-face {
|
||||||
src: url("Sans-Regular.eot") format("eot"),
|
src: url("Sans-Regular.eot") format("eot"),
|
||||||
url("Sans-Regular.woff") format("woff"),
|
url("Sans-Regular.woff") format("woff"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue