aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tromey2017-01-16 17:17:38 -0700
committerTom Tromey2017-01-17 15:35:39 -0700
commit8083d258ba96065ac5a201a69f34f7a4d92fe24c (patch)
tree20d2a33b2788ef0f638905d466a715b6bbe591d7
parentaa711e0a92c30914e1c68cf39251638d4faee22d (diff)
downloademacs-8083d258ba96065ac5a201a69f34f7a4d92fe24c.tar.gz
emacs-8083d258ba96065ac5a201a69f34f7a4d92fe24c.zip
Treat ":root" as a css-selector
* lisp/textmodes/css-mode.el (css--font-lock-keywords): Recognize bare ":root" as selector.
-rw-r--r--lisp/textmodes/css-mode.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 872d115f29f..c81c3f62e16 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -666,6 +666,8 @@ cannot be completed sensibly: `custom-ident',
666 ;; Variables. 666 ;; Variables.
667 (,(concat "--" css-ident-re) (0 font-lock-variable-name-face)) 667 (,(concat "--" css-ident-re) (0 font-lock-variable-name-face))
668 ;; Selectors. 668 ;; Selectors.
669 ;; Allow plain ":root" as a selector.
670 ("^[ \t]*\\(:root\\)\\(?:[\n \t]*\\)*{" (1 'css-selector keep))
669 ;; FIXME: attribute selectors don't work well because they may contain 671 ;; FIXME: attribute selectors don't work well because they may contain
670 ;; strings which have already been highlighted as f-l-string-face and 672 ;; strings which have already been highlighted as f-l-string-face and
671 ;; thus prevent this highlighting from being applied (actually now that 673 ;; thus prevent this highlighting from being applied (actually now that