]> git.eshelyaron.com Git - emacs.git/commit
Remove the contextual hack in tree-sitter fontification
authorYuan Fu <casouri@gmail.com>
Tue, 15 Nov 2022 10:22:41 +0000 (02:22 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 15 Nov 2022 10:22:41 +0000 (02:22 -0800)
commite0760599b045a7ef3828ae4b624246b6beec2e75
treec9b144b2fd9418f350ba5590a96a49e2a76f7f20
parent34e50dc4a23505dce0499f120477e2e1a1327432
Remove the contextual hack in tree-sitter fontification

We now have a better facility that can replace the contextual
hack. The C part is in the previous commit, and the Lisp part work
will be in the next commit.

* doc/lispref/modes.texi (Parser-based Font Lock): Update manual.
* lisp/progmodes/js.el (js--treesit-font-lock-settings)
* lisp/progmodes/python.el (python--treesit-settings)
* lisp/progmodes/ts-mode.el (ts-mode--font-lock-settings): Stop marking
contextual nodes.
* lisp/treesit.el (treesit-font-lock-contextual-post-process): Remove
function.
(treesit-font-lock-fontify-region): Remove code processing contextual
nodes.
doc/lispref/modes.texi
lisp/progmodes/js.el
lisp/progmodes/python.el
lisp/progmodes/ts-mode.el
lisp/treesit.el