]> git.eshelyaron.com Git - emacs.git/commit
More changes for treesitter support of outline-minor-mode (bug#68824)
authorJuri Linkov <juri@linkov.net>
Tue, 13 Feb 2024 17:02:21 +0000 (19:02 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 14 Feb 2024 08:15:03 +0000 (09:15 +0100)
commit5da8ce06d982f7bb181d3f57a38f661896ba7b7e
treea34c79cfde1fe7aabe6dd048eaf8880ef7a2da80
parentb0f4389662812e0214f9033387e0c8376ebdb9da
More changes for treesitter support of outline-minor-mode (bug#68824)

* lisp/treesit.el (treesit-outline-level): Set NAMED arg of
'treesit-node-at' to t.  Don't set IGNORE-MISSING arg of
'treesit-node-match-p' to t.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
Add "singleton_method" to 'treesit-thing-settings'.
Set 'treesit-outline-predicate'.  Kill local variables
'outline-regexp' and 'outline-level'.

(cherry picked from commit d61145cc8cfb31ca170cd1b5deab59f0a5cbea63)
lisp/progmodes/ruby-ts-mode.el
lisp/treesit.el