1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -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:
Tom Tromey 2017-01-16 17:17:38 -07:00
parent aa711e0a92
commit 8083d258ba

View file

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