summaryrefslogtreecommitdiff
path: root/lisp/textmodes/toml-ts-mode.el
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-12-27 20:37:29 -0800
committerYuan Fu <casouri@gmail.com>2022-12-27 20:37:29 -0800
commitb39dc7ab27a696a8607ab859aeff3c71509231f5 (patch)
treed5cb2e1b25887ec4f58b650049b5fd13dcc0a474 /lisp/textmodes/toml-ts-mode.el
parentba1ddea9dabf51c9c6e463d667bcce0b48294453 (diff)
downloademacs-b39dc7ab27a696a8607ab859aeff3c71509231f5.tar.gz
emacs-b39dc7ab27a696a8607ab859aeff3c71509231f5.tar.bz2
emacs-b39dc7ab27a696a8607ab859aeff3c71509231f5.zip
Add tree-sitter helper functions for Imenu
We didn't add an integration for Imenu because we aren't sure what should it look like. Now we have a pretty good idea. All the major modes copy-paste the two Imenu functions and tweaks them in a standard way. With the addition of treesit-defun-type-regexp and treesit-defun-name-function, now is a good time to standardize Imenu integration. In the next commit we update all the major modes to use this integration. * doc/lispref/modes.texi (Imenu): Add manual. * doc/lispref/parsing.texi (Tree-sitter major modes): Update manual. * lisp/treesit.el (treesit-simple-imenu-settings): New varaible. (treesit--simple-imenu-1) (treesit-simple-imenu): New functions. (treesit-major-mode-setup): Setup Imenu.
Diffstat (limited to 'lisp/textmodes/toml-ts-mode.el')
0 files changed, 0 insertions, 0 deletions