aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimen Heggestøyl2015-10-07 19:19:42 +0200
committerSimen Heggestøyl2015-10-07 19:19:42 +0200
commit3cd29a5d15d22866eb45c7bd4460215cb8902a05 (patch)
tree1810b368c406eb28895651e3adc2719b72c320b7
parent8a40c5a67eb6b89574ff98f7d55b456d89ff22ee (diff)
downloademacs-3cd29a5d15d22866eb45c7bd4460215cb8902a05.tar.gz
emacs-3cd29a5d15d22866eb45c7bd4460215cb8902a05.zip
Highlight CSS variable definitions
* lisp/textmodes/css-mode.el (css-nmstart-re): Tweak regexp to accept CSS variables. (Bug#21638)
-rw-r--r--lisp/textmodes/css-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 5f4eebdf977..3e84b43bcb4 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 "+"))