mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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'.
This commit is contained in:
parent
58430f2996
commit
bdd0c8600f
1 changed files with 1 additions and 1 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue