]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-mode defun movement (bug#59628)
authorYuan Fu <casouri@gmail.com>
Wed, 30 Nov 2022 22:59:06 +0000 (14:59 -0800)
committerYuan Fu <casouri@gmail.com>
Thu, 1 Dec 2022 00:57:08 +0000 (16:57 -0800)
commitfb5d9ff559c42105d298ebfb30021f6bf01d7eb0
treea793888827dbd09f18f3f9c0ccc78a64921bf698
parent7397f2099b6c2053c5996e8679b6e2856224569b
Fix c-ts-mode defun movement (bug#59628)

* lisp/progmodes/c-ts-mode.el (c-ts-mode--end-of-defun): New function.
(c-ts-mode--base-mode): Use more specific regexp, and set
treesit-defun-prefer-top-level.
(c-ts-mode)
(c++-ts-mode): Set end-of-defun-function.
lisp/progmodes/c-ts-mode.el