diff options
| author | Dmitry Gutov | 2023-03-27 03:49:13 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2023-03-27 03:49:13 +0300 |
| commit | cbef1422fe3ba5d3327835f3952a0f42f7881716 (patch) | |
| tree | cd8131652e2ae3657ddd93f630b7e6891fd28fdc /exec/exec.c | |
| parent | a0d5fba74a638aa320aefa0a6583d233bbcee99f (diff) | |
| download | emacs-cbef1422fe3ba5d3327835f3952a0f42f7881716.tar.gz emacs-cbef1422fe3ba5d3327835f3952a0f42f7881716.zip | |
ruby-ts-mode: Fix/simplify Imenu index generation
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--full-name): Drop '#'
from the end of resulting string when the node is not a method.
Support 'singleton_method' nodes.
(ruby-ts--imenu-helper): Simplify, to create a "flat" list of
entries, rather than a nested one. The previous implementation
had problems (like producing a nested structure of full-qualified
names, thus creating a lot of textual repetition), seems easier to
just follow ruby-mode's example here, at least for Emacs 29's
release.
* test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index):
New test.
Diffstat (limited to 'exec/exec.c')
0 files changed, 0 insertions, 0 deletions