]> git.eshelyaron.com Git - emacs.git/commit
Improve outline-predicate of ts-modes (bug#74448)
authorJuri Linkov <juri@linkov.net>
Tue, 11 Feb 2025 17:42:33 +0000 (19:42 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Feb 2025 10:49:16 +0000 (11:49 +0100)
commit2bfcc83bbc456313a112cfaa49b9db154635809e
treecf13c10825c0aa4001a3f74a9e8e4b7714dce748
parent3b3b8dd6cb5ec9a737e196b058c3642e69ca575b
Improve outline-predicate of ts-modes (bug#74448)

* lisp/progmodes/c-ts-mode.el (c-ts-mode--outline-predicate):
Simplify since 'treesit-outline-search' was fixed in 302274b1862.
Use 'treesit-parent-until' to handle the case with "pointer_declarator".

* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--outline-predicate):
Add "block_sequence_item".

(cherry picked from commit 58c09c3d36075c3a1a9f178fd8ee019309e6f403)
lisp/progmodes/c-ts-mode.el
lisp/textmodes/yaml-ts-mode.el