]> git.eshelyaron.com Git - emacs.git/commit
Fix incorrect tree-sitter fontification
authorYuan Fu <casouri@gmail.com>
Sun, 6 Nov 2022 01:58:39 +0000 (18:58 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 6 Nov 2022 02:00:17 +0000 (19:00 -0700)
commit9fbbb2355298f75e8fd09b35306e843ce45b9e25
tree43f74c6e6ed404031ffb465bb60108481ddf6ba2
parent076a25810127cb8c56ff0f5272a3d8b98192ee77
Fix incorrect tree-sitter fontification

* lisp/treesit.el (treesit-font-lock-fontify-region): If the captured
node is outside of the region between START and END, don't fontify it.
Wrap fontification code in a when form.
lisp/treesit.el