From d6ea6453f3d1696b9e6cd0a0222fc77dc646365c Mon Sep 17 00:00:00 2001 From: Etienne Prud'homme Date: Wed, 6 Apr 2016 17:05:41 -0400 Subject: [PATCH] Fix alignement rule for CSS * lisp/align.el (align-rules-list): Support CSS properties that have multiple words. Copyright-paperwork-exempt: yes --- lisp/align.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5