diff options
| author | Simen Heggestøyl | 2018-05-29 19:14:34 +0200 |
|---|---|---|
| committer | Simen Heggestøyl | 2018-05-29 21:24:26 +0200 |
| commit | 58d0642e1ca006fa550bff50fd328bc166c572da (patch) | |
| tree | a963419d50eac188e629bba7cbb68fcd833a2290 /etc | |
| parent | 5be83e343f9f0f3487793b54ff95bc89ee6b824a (diff) | |
| download | emacs-58d0642e1ca006fa550bff50fd328bc166c572da.tar.gz emacs-58d0642e1ca006fa550bff50fd328bc166c572da.zip | |
Add Imenu support to CSS mode and its derivatives
* lisp/textmodes/css-mode.el (css--join-nested-selectors)
(css--prev-index-position, css--extract-index-name): New helper
functions for supporting Imenu.
(css-mode): Set `imenu-space-replacement',
`imenu-prev-index-position-function', and
`imenu-extract-index-name-function'.
(css-current-defun-name): Reuse `css--prev-index-position' and
`css--extract-index-name' to support nested selectors.
* test/lisp/textmodes/css-mode-tests.el (css-test-current-defun-name):
Fix character index.
(css-test-join-nested-selectors): New tests for
`css--join-nested-selectors'.
* etc/NEWS: Add news entry.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -263,6 +263,9 @@ Can be controlled via the new variable 'footnote-align-to-fn-text'. | |||
| 263 | formats (e.g. "black" => "#000000" => "rgb(0, 0, 0)") has been added, | 263 | formats (e.g. "black" => "#000000" => "rgb(0, 0, 0)") has been added, |
| 264 | bound to 'C-c C-f'. | 264 | bound to 'C-c C-f'. |
| 265 | 265 | ||
| 266 | --- | ||
| 267 | *** CSS mode, SCSS mode, and Less CSS mode now have support for Imenu. | ||
| 268 | |||
| 266 | ** SGML mode | 269 | ** SGML mode |
| 267 | 270 | ||
| 268 | --- | 271 | --- |