]> code.delx.au - gnu-emacs/commit
Support completion of attribute values in CSS mode
authorSimen Heggestøyl <simenheg@gmail.com>
Wed, 23 Mar 2016 18:03:47 +0000 (19:03 +0100)
committerSimen Heggestøyl <simenheg@gmail.com>
Wed, 23 Mar 2016 18:03:47 +0000 (19:03 +0100)
commit269d5631ab6ae7a5a792d0139b9421bddac8870c
tree00bfdf536dff6c02ad1b5c7e869eeaa8ad91d9bd
parent500a781bc5d3d7cc2f671a950816ba4035a9d58c
Support completion of attribute values in CSS mode

* lisp/textmodes/css-mode.el (css-property-alist): New defconst
holding CSS identifiers and the values they can have.
(css-property-ids): Compute dynamically from `css-property-alist'.
(css-value-class-alist): New defconst holding property value classes
and their values.
(css--property-value-cache): New variable providing a cache for
`css--property-values'.
(css--value-class-lookup): New function for computing a list of values
in a value class.
(css--property-values): New function for computing a list of possible
values for a CSS property.
(css--complete-property-value): New function for completing a property
value.
(css-completion-at-point): Add support for completing property values.
* test/lisp/textmodes/css-mode-tests.el: New file.
etc/NEWS
lisp/textmodes/css-mode.el
test/lisp/textmodes/css-mode-tests.el [new file with mode: 0644]