]> git.eshelyaron.com Git - emacs.git/commit
Improve python tree-sitter's string fontification
authorYuan Fu <casouri@gmail.com>
Mon, 31 Oct 2022 03:59:50 +0000 (20:59 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 31 Oct 2022 07:09:36 +0000 (00:09 -0700)
commit79ee266f13fa5c657b24dc45d5f573c393a671b6
tree88390bd22acebc84e253d1eaf8ac400e2572d8c0
parent377ee8158b2fab3efccb4e9b262e6129b51e28f8
Improve python tree-sitter's string fontification

* lisp/progmodes/python.el (python--treesit-fontify-string): Handle
not only f-strings, but also docstrings, and NODE is now the last
quote rather than the whole string.
(python--treesit-settings): Use python--treesit-fontify-string for
every occasion.
lisp/progmodes/python.el