mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Support a new CSS indentation style
* lisp/textmodes/css-mode.el (css-smie-rules): Indent after property immediately followed by a newline. * test/manual/indent/css-mode.css: Add test for the change above. * test/manual/indent/scss-mode.scss: Ditto.
This commit is contained in:
parent
e3b7eeade4
commit
d2d6e4452c
3 changed files with 25 additions and 1 deletions
|
|
@ -1208,7 +1208,10 @@ for determining whether point is within a selector."
|
|||
(smie-backward-sexp ";")
|
||||
(smie-indent-virtual)))
|
||||
(`(:before . ,(or "{" "("))
|
||||
(if (smie-rule-hanging-p) (smie-rule-parent 0)))))
|
||||
(if (smie-rule-hanging-p) (smie-rule-parent 0)))
|
||||
(`(:after . ":-property")
|
||||
(when (smie-rule-hanging-p)
|
||||
css-indent-offset))))
|
||||
|
||||
;;; Completion
|
||||
|
||||
|
|
|
|||
|
|
@ -65,8 +65,15 @@ div::before {
|
|||
5.0, 6.0
|
||||
);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
src: url("Sans-Regular.eot") format("eot"),
|
||||
url("Sans-Regular.woff") format("woff"),
|
||||
url("Sans-Regular.ttf") format("truetype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
src:
|
||||
url("Sans-Regular.eot") format("eot"),
|
||||
url("Sans-Regular.woff") format("woff");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,3 +92,17 @@ div:last-child {
|
|||
"Nimbus Sans L", sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font:
|
||||
15px "Helvetica Neue", Helvetica, Arial,
|
||||
"Nimbus Sans L", sans-serif;
|
||||
font-family:
|
||||
sans-serif;
|
||||
|
||||
article {
|
||||
font:
|
||||
15px "Helvetica Neue", Helvetica, Arial,
|
||||
"Nimbus Sans L", sans-serif;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue