]> git.eshelyaron.com Git - emacs.git/commit
Pass region start and end to tree-sitter fontification functions
authorYuan Fu <casouri@gmail.com>
Thu, 3 Nov 2022 00:03:03 +0000 (17:03 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 3 Nov 2022 00:03:03 +0000 (17:03 -0700)
commit69ab588bb54178df0d3be6b4c04dabb49f5a2ac9
treea308a378f3efb1f742fec67cd807bc394689bd0b
parentf331be1f074d68e7e5cdbac324419e07c186492a
Pass region start and end to tree-sitter fontification functions

* doc/lispref/modes.texi (Parser-based Font Lock): Update manual.
* lisp/progmodes/js.el (js--fontify-template-string)
* lisp/progmodes/python.el (python--treesit-fontify-string): Update
function to only fontify within the region.
* lisp/treesit.el (treesit-font-lock-rules): Update docstring.
(treesit-font-lock-fontify-region): Pass START and END to
fontification functions.
doc/lispref/modes.texi
lisp/progmodes/js.el
lisp/progmodes/python.el
lisp/treesit.el