]> git.eshelyaron.com Git - emacs.git/commit
Add another heuristic to speed up tree-sitter fontification
authorYuan Fu <casouri@gmail.com>
Mon, 21 Nov 2022 01:15:42 +0000 (17:15 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 21 Nov 2022 01:15:42 +0000 (17:15 -0800)
commit76eb88df0243dd15492e71f068fd476be8efc800
tree228eea9024fe41f5c379220107d23aaaadca57eb
parent32870d2f207536bb7932beeb2e0ec9a4e0146560
Add another heuristic to speed up tree-sitter fontification

* lisp/treesit.el (treesit-font-lock-fontify-region): Use
treesit--children-covering-range to reduce the node size.
lisp/treesit.el