aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/css-mode.css
diff options
context:
space:
mode:
authorStefan Monnier2014-10-20 12:36:34 -0400
committerStefan Monnier2014-10-20 12:36:34 -0400
commitbc0e9e47b645ecd8da86eb8ae5810ebf2fd62b97 (patch)
treecd9aff1fe18c0593b94e03523debeb124685ffd3 /test/indent/css-mode.css
parent57fe1632f0dc40042dfb6593f81f451165987637 (diff)
downloademacs-bc0e9e47b645ecd8da86eb8ae5810ebf2fd62b97.tar.gz
emacs-bc0e9e47b645ecd8da86eb8ae5810ebf2fd62b97.zip
* lisp/textmodes/css-mode.el (scss-mode): New major-mode.
(css-mode-syntax-table): Use d style comment, to ease the scss case. (css-ident-re): Allow things like @-moz-keyframes. (scss--hash-re): New const. (css--font-lock-keywords): New function, extracted from css-font-lock-keywords. (css-font-lock-keywords): Use it. (scss-mode-syntax-table, scss-font-lock-keywords): New vars. (scss-smie--not-interpolation-p): New function. (css-smie--forward-token, css-smie--backward-token): Use it. (css-mode): Remove left-over code. * test/indent/scss-mode.scss: New file. * test/indent/css-mode.css: Add a few uneventful examples.
Diffstat (limited to 'test/indent/css-mode.css')
-rw-r--r--test/indent/css-mode.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/indent/css-mode.css b/test/indent/css-mode.css
index 4dbab06975c..564ac16f954 100644
--- a/test/indent/css-mode.css
+++ b/test/indent/css-mode.css
@@ -1,7 +1,17 @@
1/* asdfasdf */
2
1.xxx 3.xxx
2{ 4{
3} 5}
4 6
7article[role="main"] {
8 width: 60%;
9}
10
11/* asdfasdf */
12@foo x2 {
13 bla:toto;
14}
5.x2 15.x2
6{ 16{
7 foo: bar; 17 foo: bar;