diff options
author | Simen Heggestøyl <simenheg@gmail.com> | 2017-04-16 11:55:33 +0200 |
---|---|---|
committer | Simen Heggestøyl <simenheg@gmail.com> | 2017-04-16 11:55:33 +0200 |
commit | bdd0c8600fcd33b6f8a535a66343591a29575042 (patch) | |
tree | bfd64c80407b05e459ef7a3202cf71a77ac064d7 | |
parent | 58430f29968a5661caff630d20dbbe7c864fe08d (diff) | |
download | emacs-bdd0c8600fcd33b6f8a535a66343591a29575042.tar.gz |
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'.
-rw-r--r-- | lisp/textmodes/css-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 2088ea0a1e6..d4a5cfe6293 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! |