]> git.eshelyaron.com Git - emacs.git/commit
Add color highlighting to css-mode
authorTom Tromey <tom@tromey.com>
Wed, 25 Jan 2017 07:53:49 +0000 (00:53 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 3 May 2017 22:00:25 +0000 (16:00 -0600)
commitf0708fc5e424a2b5b814c59be0ec7234a739a500
treef1a077727478a429dba954242dd84c5ab5960733
parenta26e33a1a776affcbf8cdd012297d48999ba8e80
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.
etc/NEWS
lisp/textmodes/css-mode.el
test/lisp/textmodes/css-mode-tests.el