]> git.eshelyaron.com Git - emacs.git/commit
Add an argument OVERRIDE to tree-sitter font-lock functions
authorYuan Fu <casouri@gmail.com>
Mon, 31 Oct 2022 22:03:49 +0000 (15:03 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 31 Oct 2022 22:03:49 +0000 (15:03 -0700)
commiteeeae5e9ee34da5539046ff8dac4f4fffa19a5b9
treeb815a383714dc3ee9d33c61fc39e91429709f344
parent9fab83ed7a90209e3873039e7ae4993c667e2759
Add an argument OVERRIDE to tree-sitter font-lock functions

* doc/lispref/modes.texi (Parser-based Font Lock): Reflect this change
in manual.
* lisp/progmodes/js.el (js--fontify-template-string): Add _OVERRIDE
argument.
* lisp/progmodes/python.el (python--treesit-fontify-string): Add
_OVERRIDE argument.
* lisp/treesit.el (treesit-font-lock-rules): Update docstring.
(treesit-fontify-with-override): New function.
(treesit-font-lock-fontify-region): Extract out into
treesit-fontify-with-override.
doc/lispref/modes.texi
lisp/progmodes/js.el
lisp/progmodes/python.el
lisp/treesit.el