]> git.eshelyaron.com Git - emacs.git/commit
Fix python-mode tree-sitter fontification
authorYuan Fu <casouri@gmail.com>
Sat, 19 Nov 2022 08:25:57 +0000 (00:25 -0800)
committerYuan Fu <casouri@gmail.com>
Sat, 19 Nov 2022 08:25:57 +0000 (00:25 -0800)
commitc6384e9bfbc765229ea9676ba1044b9db28fec2d
tree1d2aba794d06f2b4cda7c5b2b22393a5947d9867
parent2f03053e568f38a1dce5ffe02ad1359069ef84c8
Fix python-mode tree-sitter fontification

Forgot to update python-mode's code when I added the tree-sitter
notifier facility.  Now it doesn't need any special treatment anymore.
Leaving it as is causes some incorrect fontification.

* lisp/progmodes/python.el (python--treesit-fontify-string): Accept
the string node rather than the quote node.
(python--treesit-settings): Capture string node.
lisp/progmodes/python.el