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)
committerYuan Fu <casouri@gmail.com>
Tue, 27 Aug 2024 02:45:33 +0000 (19:45 -0700)
commit3a4839d142757ce6fabe81473e337acd13f51826
tree534b123f278d87f1fc13d8865f912d88a792ae6a
parent31293155879f5b44fc89fda2f22b41e3e5892430
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.
lisp/treesit.el