]> git.eshelyaron.com Git - emacs.git/commit
More consistent treesit-forward-sexp around comments (bug#72525)
authorYuan Fu <casouri@gmail.com>
Tue, 27 Aug 2024 02:43:00 +0000 (19:43 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:38 +0000 (09:51 +0200)
commit401c079215c5f8afe69408492ae7f4da47d1e183
treece3449fcebc0b3f36bce111c6f611a66fe040ab0
parent7bba82050c97daa86431ab557377c0be7b92e7d0
More consistent treesit-forward-sexp around comments (bug#72525)

* lisp/treesit.el (treesit-forward-sexp): Check if point is strictly
inside a comment or string, only then use the default forward-sexp
function; otherwise use tree-sitter's forward-sexp routine.

(cherry picked from commit 3a4839d142757ce6fabe81473e337acd13f51826)
lisp/treesit.el