[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 8083d25: Treat ":root" as a css-selector
From: |
Tom Tromey |
Subject: |
[Emacs-diffs] master 8083d25: Treat ":root" as a css-selector |
Date: |
Tue, 17 Jan 2017 22:38:37 +0000 (UTC) |
branch: master
commit 8083d258ba96065ac5a201a69f34f7a4d92fe24c
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>
Treat ":root" as a css-selector
* lisp/textmodes/css-mode.el (css--font-lock-keywords): Recognize bare
":root" as selector.
---
lisp/textmodes/css-mode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 872d115..c81c3f6 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 8083d25: Treat ":root" as a css-selector,
Tom Tromey <=