emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master d6ea645: Fix alignement rule for CSS


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master d6ea645: Fix alignement rule for CSS
Date: Sun, 10 Apr 2016 20:21:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> --- 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.

BTW, I think, as is the case for font-lock, indent, imenu, and friends,
the align settings should belong in the major mode's definition rather
in align.el.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]