summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorSimen Heggestøyl <simenheg@gmail.com>2015-10-07 19:19:42 +0200
committerSimen Heggestøyl <simenheg@gmail.com>2015-10-07 19:19:42 +0200
commit3cd29a5d15d22866eb45c7bd4460215cb8902a05 (patch)
tree1810b368c406eb28895651e3adc2719b72c320b7 /lisp
parent8a40c5a67eb6b89574ff98f7d55b456d89ff22ee (diff)
downloademacs-3cd29a5d15d22866eb45c7bd4460215cb8902a05.tar.gz
emacs-3cd29a5d15d22866eb45c7bd4460215cb8902a05.tar.bz2
emacs-3cd29a5d15d22866eb45c7bd4460215cb8902a05.zip
Highlight CSS variable definitions
* lisp/textmodes/css-mode.el (css-nmstart-re): Tweak regexp to accept CSS variables. (Bug#21638)
Diffstat (limited to 'lisp')
-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 @@
(defconst css-escapes-re
"\\\\\\(?:[^\000-\037\177]\\|[0-9a-fA-F]+[ \n\t\r\f]?\\)")
(defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)"))
-(defconst css-nmstart-re (concat "\\(?:[[:alpha:]]\\|" css-escapes-re "\\)"))
+(defconst css-nmstart-re (concat "\\(?:--\\)?\\(?:[[:alpha:]]\\|" css-escapes-re "\\)"))
(defconst css-ident-re ;; (concat css-nmstart-re css-nmchar-re "*")
;; Apparently, "at rules" names can start with a dash, e.g. @-moz-keyframes.
(concat css-nmchar-re "+"))