>From 0b50ef758085624a94eead9826eaf42e688e3f76 Mon Sep 17 00:00:00 2001 From: Etienne 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 c3389dc..41519a5 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.8.1