diff options
| author | Simen Heggestøyl | 2016-03-31 21:18:00 +0200 |
|---|---|---|
| committer | Simen Heggestøyl | 2016-03-31 21:21:34 +0200 |
| commit | 750e1e19429cd781e2e60b462d19ef827d4da943 (patch) | |
| tree | 41b5281e283acb3f5fb5e64baf0a4f896d7a593d /etc | |
| parent | 09462b95484ebf75899c64e8ddb7ffce50ef6ca0 (diff) | |
| download | emacs-750e1e19429cd781e2e60b462d19ef827d4da943.tar.gz emacs-750e1e19429cd781e2e60b462d19ef827d4da943.zip | |
Support completion of bang-rules in CSS mode
lisp/textmodes/css-mode.el (css--bang-ids): New buffer-local variable
holding the list of bang-rules for the current mode.
(css--font-lock-keywords): Retrieve bang-rules from `css--bang-ids'
instead of computing them.
(css--complete-bang-rule): New function for completing a bang-rule.
(css-completion-at-point): Add support for completing bang-rules.
(scss-font-lock-keywords): Change from a variable to a function in
order to recompute `css--font-lock-keywords' when `css--bang-ids' has
changed.
(scss-mode): Set `css--bang-ids' and recompute font-lock keywords.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -144,8 +144,8 @@ different group ID. | |||
| 144 | ** CSS mode | 144 | ** CSS mode |
| 145 | 145 | ||
| 146 | --- | 146 | --- |
| 147 | *** Support for completing attribute values using the 'completion-at-point' | 147 | *** Support for completing attribute values and bang-rules using the |
| 148 | command. | 148 | 'completion-at-point' command. |
| 149 | 149 | ||
| 150 | 150 | ||
| 151 | * New Modes and Packages in Emacs 25.2 | 151 | * New Modes and Packages in Emacs 25.2 |