From: Etienne Prud'homme Date: Wed, 6 Apr 2016 21:05:41 +0000 (-0400) Subject: Fix alignement rule for CSS X-Git-Tag: emacs-26.0.90~2228 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d6ea6453f3d1696b9e6cd0a0222fc77dc646365c;p=emacs.git Fix alignement rule for CSS * lisp/align.el (align-rules-list): Support CSS properties that have multiple words. Copyright-paperwork-exempt: yes --- diff --git a/lisp/align.el b/lisp/align.el index c3389dc9860..41519a5017e 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -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.