aboutsummaryrefslogtreecommitdiffstats
path: root/test/manual/indent/css-mode.css
diff options
context:
space:
mode:
authorSimen Heggestøyl2017-02-02 20:05:32 +0100
committerSimen Heggestøyl2017-02-04 20:19:54 +0100
commitf6ff7bb1fcd062fe4ebf6c89890524110501583e (patch)
treee7ca0ad1e5595f7be4f75c53ed0091d09d55f72a /test/manual/indent/css-mode.css
parentff4dd0d39c3f5dfb8f4988f840c2c05621db32db (diff)
downloademacs-f6ff7bb1fcd062fe4ebf6c89890524110501583e.tar.gz
emacs-f6ff7bb1fcd062fe4ebf6c89890524110501583e.zip
Fix indentation of multiline CSS property values
* lisp/textmodes/css-mode.el (css-smie-grammar): Give colons belonging to properties higher precedence. (css--colon-inside-selector-p, css--colon-inside-funcall): New functions for helping SMIE during tokenization. (css-smie--forward-token, css-smie--backward-token): Distinguish colons belonging to properties from other colons. * test/manual/indent/css-mode.css: Add tests for the changes above. * test/manual/indent/scss-mode.scss: Ditto.
Diffstat (limited to 'test/manual/indent/css-mode.css')
-rw-r--r--test/manual/indent/css-mode.css27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/manual/indent/css-mode.css b/test/manual/indent/css-mode.css
index 3a00739bfc4..0845c02c299 100644
--- a/test/manual/indent/css-mode.css
+++ b/test/manual/indent/css-mode.css
@@ -43,3 +43,30 @@ article:hover
43{ 43{
44 color: black; 44 color: black;
45} 45}
46
47/* bug:13425 */
48div:first-child,
49div:last-child,
50div[disabled],
51div::before {
52 font: 15px "Helvetica Neue",
53 Helvetica,
54 Arial,
55 "Nimbus Sans L",
56 sans-serif;
57 font: 15px "Helvetica Neue", Helvetica, Arial,
58 "Nimbus Sans L", sans-serif;
59 transform: matrix(1.0, 2.0,
60 3.0, 4.0,
61 5.0, 6.0);
62 transform: matrix(
63 1.0, 2.0,
64 3.0, 4.0,
65 5.0, 6.0
66 );
67}
68@font-face {
69 src: url("Sans-Regular.eot") format("eot"),
70 url("Sans-Regular.woff") format("woff"),
71 url("Sans-Regular.ttf") format("truetype");
72}