diff options
author | Tom Tromey <tom@tromey.com> | 2017-01-25 00:53:49 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-05-03 16:00:25 -0600 |
commit | f0708fc5e424a2b5b814c59be0ec7234a739a500 (patch) | |
tree | f1a077727478a429dba954242dd84c5ab5960733 /test/lisp/emacs-lisp/bytecomp-tests.el | |
parent | a26e33a1a776affcbf8cdd012297d48999ba8e80 (diff) | |
download | emacs-f0708fc5e424a2b5b814c59be0ec7234a739a500.tar.gz emacs-f0708fc5e424a2b5b814c59be0ec7234a739a500.tar.bz2 emacs-f0708fc5e424a2b5b814c59be0ec7234a739a500.zip |
Add color highlighting to css-mode
Bug#25525
* lisp/textmodes/css-mode.el (css--color-map): New constant.
(css-value-class-alist): Use css--color-map.
(css--number-regexp, css--percent-regexp)
(css--number-or-percent-regexp, css--angle-regexp): New constants.
(css--color-skip-blanks, css--rgb-color, css--hsl-color): New
functions.
(css--colors-regexp): New constant.
(css--hex-color, css--named-color, css--compute-color)
(css--contrasty-color, css--fontify-colors)
(css--fontify-region): New functions.
(css-mode): Set font-lock-fontify-region-function.
(css-mode-syntax-table): Set syntax on more characters.
(css-fontify-colors): New defcustom.
(scss-mode-syntax-table): Define syntax for ?$ and ?%.
* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Update.
(css-test-rgb-parser, css-test-hsl-parser)
(css-test-named-color): New tests.
* etc/NEWS: Add entry.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-tests.el')
0 files changed, 0 insertions, 0 deletions