]> git.eshelyaron.com Git - emacs.git/commit
Fix usage of 'treesit-defun-type-regexp' in treesit-tests.
authorJuri Linkov <juri@linkov.net>
Wed, 25 Jun 2025 16:45:54 +0000 (19:45 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 19:18:47 +0000 (21:18 +0200)
commit024a1f1051c4d048effb160b8bea915e62a45378
tree8b95206a8a055d6e64c54fc71957010a93842238
parente8a9a823f4dc045c9abccb1b2a9caf42a4fa667f
Fix usage of 'treesit-defun-type-regexp' in treesit-tests.

* test/src/treesit-tests.el (treesit--ert-test-defun-navigation):
Replace 'treesit-defun-type-regexp' with
'(or treesit-defun-type-regexp 'defun)' that fixes the tests
for ts-modes that set up the 'defun' thing instead of
'treesit-defun-type-regexp'.

(cherry picked from commit 789a6b969345d6f9e0c8604bff8618d20a6cf536)
test/src/treesit-tests.el