emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master bdd0c86: Fix highlighting of short selectors in CSS


From: Simen Heggestøyl
Subject: [Emacs-diffs] master bdd0c86: Fix highlighting of short selectors in CSS mode
Date: Sun, 16 Apr 2017 05:56:30 -0400 (EDT)

branch: master
commit bdd0c8600fcd33b6f8a535a66343591a29575042
Author: Simen Heggestøyl <address@hidden>
Commit: Simen Heggestøyl <address@hidden>

    Fix highlighting of short selectors in CSS mode
    
    * lisp/textmodes/css-mode.el (css--font-lock-keywords): Highlight
    selectors where the part before a colon is only one character long,
    such as `a:hover'.
---
 lisp/textmodes/css-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 2088ea0..d4a5cfe 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -733,7 +733,7 @@ cannot be completed sensibly: `custom-ident',
        (if (not sassy)
            ;; We don't allow / as first char, so as not to
            ;; take a comment as the beginning of a selector.
-           "[^@/:{}() \t\n][^:{}()]+"
+           "[^@/:{}() \t\n][^:{}()]*"
          ;; Same as for non-sassy except we do want to allow { and }
          ;; chars in selectors in the case of #{$foo}
          ;; variable interpolation!



reply via email to

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