mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Treat ":root" as a css-selector
* lisp/textmodes/css-mode.el (css--font-lock-keywords): Recognize bare ":root" as selector.
This commit is contained in:
parent
aa711e0a92
commit
8083d258ba
1 changed files with 2 additions and 0 deletions
|
|
@ -666,6 +666,8 @@ cannot be completed sensibly: `custom-ident',
|
|||
;; Variables.
|
||||
(,(concat "--" css-ident-re) (0 font-lock-variable-name-face))
|
||||
;; Selectors.
|
||||
;; Allow plain ":root" as a selector.
|
||||
("^[ \t]*\\(:root\\)\\(?:[\n \t]*\\)*{" (1 'css-selector keep))
|
||||
;; FIXME: attribute selectors don't work well because they may contain
|
||||
;; strings which have already been highlighted as f-l-string-face and
|
||||
;; thus prevent this highlighting from being applied (actually now that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue