]> code.delx.au - gnu-emacs/commitdiff
Fix alignement rule for CSS
authorEtienne Prud'homme <e.e.f.prudhomme@gmail.com>
Wed, 6 Apr 2016 21:05:41 +0000 (17:05 -0400)
committerSimen Heggestøyl <simenheg@gmail.com>
Sun, 10 Apr 2016 21:31:19 +0000 (23:31 +0200)
* lisp/align.el (align-rules-list): Support CSS properties that have
multiple words.

Copyright-paperwork-exempt: yes

lisp/align.el

index c3389dc98605f37b8eff8a9dcd239804132f56bc..41519a5017eeb32ceabf523260a844035b7f6522 100644 (file)
@@ -577,7 +577,7 @@ The possible settings for `align-region-separate' are:
                     (eq '- current-prefix-arg)))))
 
     (css-declaration
-     (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;")
+     (regexp . "^\\s-*\\(?:\\w-?\\)+:\\(\\s-*\\).*;")
      (group . (1))
      (modes . '(css-mode html-mode))))
   "A list describing all of the available alignment rules.