diff options
| -rw-r--r-- | lisp/textmodes/css-mode.el | 2 |
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 |