]> git.eshelyaron.com Git - emacs.git/commit
Utilize tree-sitter in python.el
authorYuan Fu <casouri@gmail.com>
Thu, 22 Sep 2022 18:24:32 +0000 (11:24 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 22 Sep 2022 18:24:32 +0000 (11:24 -0700)
commit1cdb24fe35a9ff2e4f92c5acc93a5a5b0e70d93f
tree4c8b24e61d2ed67a0fcef3534e4c991522b8bcf1
parent361eaae71e30d9554bb78d9ccaeddf3e006115c0
Utilize tree-sitter in python.el

* lisp/progmodes/python.el (python-use-tree-sitter): New option.
(python--treesit-keywords, python--treesit-builtins)
(python--treesit-constants, python--treesit-operators)
(python--treesit-special-attributes, python--treesit-exceptions): New
variables.
(python--treesit-fontify-string, python--treesit-settings)
(python--imenu-treesit-create-index)
(python--imenu-treesit-create-flat-index)
(python-info-treesit-current-defun): New functions.
(python-mode): Enable tree-sitter font-lock and which-func.
lisp/progmodes/python.el