aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorJohn Wiegley2016-02-03 23:54:45 -0800
committerJohn Wiegley2016-02-03 23:54:45 -0800
commit1829a1fc85b040912dc194806c64670096ddcf43 (patch)
treee2ea31dde9caa974a251a5e943e8eb0588801dd9 /lisp/textmodes
parent535e2bef6dd7b9abe2567f865c8b24a06a555178 (diff)
parentae26c8a7a46ffa6266a4efce592827cf47e85170 (diff)
downloademacs-1829a1fc85b040912dc194806c64670096ddcf43.tar.gz
emacs-1829a1fc85b040912dc194806c64670096ddcf43.zip
Merge from origin/emacs-25
ea26c8a * lisp/net/browse-url.el (browse-url-default-browser): Lower priority of non-free Chrome. 0fac75f Improve the custom type of some user options. 2df0e04 Highlight CSS variables with variable name face 3cf5e81 * lisp/gnus/gnus-kill.el (gnus-winconf-kill-file): Not user-serviceable. 2a5233c Mark some user options that can get evalled as risky. 39b166f Disable DebPrint in sys_read on MS-Windows 9fd0189 ;Fix ChangeLog entry 4bb7233 Fix typos in Introduction to Emacs Lisp manual
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/css-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index d402fb19955..96a82baa56c 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -215,7 +215,7 @@
215(defconst css-escapes-re 215(defconst css-escapes-re
216 "\\\\\\(?:[^\000-\037\177]\\|[0-9a-fA-F]+[ \n\t\r\f]?\\)") 216 "\\\\\\(?:[^\000-\037\177]\\|[0-9a-fA-F]+[ \n\t\r\f]?\\)")
217(defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)")) 217(defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)"))
218(defconst css-nmstart-re (concat "\\(?:--\\)?\\(?:[[:alpha:]]\\|" css-escapes-re "\\)")) 218(defconst css-nmstart-re (concat "\\(?:[[:alpha:]]\\|" css-escapes-re "\\)"))
219(defconst css-ident-re ;; (concat css-nmstart-re css-nmchar-re "*") 219(defconst css-ident-re ;; (concat css-nmstart-re css-nmchar-re "*")
220 ;; Apparently, "at rules" names can start with a dash, e.g. @-moz-keyframes. 220 ;; Apparently, "at rules" names can start with a dash, e.g. @-moz-keyframes.
221 (concat css-nmchar-re "+")) 221 (concat css-nmchar-re "+"))
@@ -246,6 +246,8 @@
246 ;; Since "An at-rule consists of everything up to and including the next 246 ;; Since "An at-rule consists of everything up to and including the next
247 ;; semicolon (;) or the next block, whichever comes first." 247 ;; semicolon (;) or the next block, whichever comes first."
248 (,(concat "@" css-ident-re) (0 font-lock-builtin-face)) 248 (,(concat "@" css-ident-re) (0 font-lock-builtin-face))
249 ;; Variables.
250 (,(concat "--" css-ident-re) (0 font-lock-variable-name-face))
249 ;; Selectors. 251 ;; Selectors.
250 ;; FIXME: attribute selectors don't work well because they may contain 252 ;; FIXME: attribute selectors don't work well because they may contain
251 ;; strings which have already been highlighted as f-l-string-face and 253 ;; strings which have already been highlighted as f-l-string-face and