diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2018-01-27 18:03:49 +0100 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2018-01-27 18:18:19 +0100 |
commit | 26ee371d6dc7bd650db003a3bb62c11474373036 (patch) | |
tree | d99e4dc7e323e6fdcc5548d7cad639f4c6d85419 /lisp/textmodes/css-mode.el | |
parent | 848797ada4bc885e145bcace6a4b2cf4ed324216 (diff) | |
download | emacs-26ee371d6dc7bd650db003a3bb62c11474373036.tar.gz |
Fix indentation bug with multi-line CSS values
* lisp/textmodes/css-mode.el (css-smie-rules): Fix indentation of
multi-line CSS values that are separated by spaces.
* test/manual/indent/css-mode.css: Add a test case for the fix.
Diffstat (limited to 'lisp/textmodes/css-mode.el')
-rw-r--r-- | lisp/textmodes/css-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 7e997ac2c0f..6bd08f59190 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -1215,7 +1215,8 @@ for determining whether point is within a selector." (pcase (cons kind token) (`(:elem . basic) css-indent-offset) (`(:elem . arg) 0) - (`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467). + ;; "" stands for BOB (bug#15467). + (`(:list-intro . ,(or `";" `"" `":-property")) t) (`(:before . "{") (when (or (smie-rule-hanging-p) (smie-rule-bolp)) (smie-backward-sexp ";") |