]> git.eshelyaron.com Git - emacs.git/commit
Improve tree-sitter fontification on large buffers
authorYuan Fu <casouri@gmail.com>
Mon, 21 Nov 2022 00:37:19 +0000 (16:37 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 21 Nov 2022 01:04:58 +0000 (17:04 -0800)
commit625ea08652053617034bf8ceee0d6cfae34f2dcc
tree6436a240112a08a5d2bd0141baa0989d509d0ec1
parent657947dc7cf01a13a4fa260691a6fa0147107950
Improve tree-sitter fontification on large buffers

* lisp/treesit.el (treesit--children-covering-range)
(treesit--children-covering-range-recurse): New functions.  They are
not currently used but could be useful in the future, so I left them
in place.
(treesit-font-lock-fontify-region):
* lisp/treesit.el (treesit-font-lock-fontify-region): Use the result
of treesit-node-on instead of the root node.
lisp/treesit.el