diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2017-08-15 12:39:42 +0200 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2017-08-15 14:38:15 +0200 |
commit | 141cc78aa4552e99bf14c13d9e64357ccafe171b (patch) | |
tree | a2fcad61285d000fbf5ab0e70c45ef42d20f3ded /test/manual | |
parent | 85a9f42b6ca7711c64cbd3e4e261fae308eab9d3 (diff) | |
download | emacs-141cc78aa4552e99bf14c13d9e64357ccafe171b.tar.gz |
Support indentation of detached Less CSS rulesets
* lisp/textmodes/css-mode.el (css-smie-rules): Provide better support
for indentation of detached rulesets passed to Less mixins.
* test/manual/indent/less-css-mode.less: New file.
Diffstat (limited to 'test/manual')
-rw-r--r-- | test/manual/indent/less-css-mode.less | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/manual/indent/less-css-mode.less b/test/manual/indent/less-css-mode.less new file mode 100644 index 00000000000..36c037450cc --- /dev/null +++ b/test/manual/indent/less-css-mode.less @@ -0,0 +1,29 @@ +.desktop-and-old-ie(@rules) { + @media screen and (min-width: 1200) { @rules(); } + html.lt-ie9 & { @rules(); } +} + +header { + background-color: blue; + + .desktop-and-old-ie({ + background-color: red; + }); +} + +.e(@name, @rules) { + &__@{name} { @rules(); } +} + +.m(@name, @rules) { + &--@{name} { @rules(); } +} + +.btn { + .e(span, { // .btn__span + display: inline-block; + }); + .m(primary, { // .btn--primary + background: blue; + }); +} |