summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Prud'homme <e.e.f.prudhomme@gmail.com>2016-04-06 17:05:41 -0400
committerSimen Heggestøyl <simenheg@gmail.com>2016-04-10 23:31:19 +0200
commitd6ea6453f3d1696b9e6cd0a0222fc77dc646365c (patch)
treef61e4e0a9f291568b0741315f730ade4858122d2
parentb4b83fa2ba52cd5398e3b9d085b4afea679d1515 (diff)
Fix alignement rule for CSS
* lisp/align.el (align-rules-list): Support CSS properties that have multiple words. Copyright-paperwork-exempt: yes
-rw-r--r--lisp/align.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/align.el b/lisp/align.el
index c3389dc986..41519a5017 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.