]> git.eshelyaron.com Git - emacs.git/commit
Fix indentation of multiline CSS property values
authorSimen Heggestøyl <simenheg@gmail.com>
Thu, 2 Feb 2017 19:05:32 +0000 (20:05 +0100)
committerSimen Heggestøyl <simenheg@gmail.com>
Sat, 4 Feb 2017 19:19:54 +0000 (20:19 +0100)
commitf6ff7bb1fcd062fe4ebf6c89890524110501583e
treee7ca0ad1e5595f7be4f75c53ed0091d09d55f72a
parentff4dd0d39c3f5dfb8f4988f840c2c05621db32db
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.
lisp/textmodes/css-mode.el
test/manual/indent/css-mode.css
test/manual/indent/scss-mode.scss