diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e17651d9275..a7944576196 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1225,7 +1225,7 @@ For NODE, OVERRIDE, START, END, and ARGS, see (when (python--treesit-variable-p node) (treesit-fontify-with-override (treesit-node-start node) (treesit-node-end node) - 'font-lock-variable-name-face override start end))) + 'font-lock-variable-use-face override start end))) ;;; Indentation @@ -6717,8 +6717,8 @@ implementations: `python-mode' and `python-ts-mode'." '(( comment definition) ( keyword string type) ( assignment builtin constant decorator - escape-sequence number property string-interpolation ) - ( bracket delimiter function operator variable))) + escape-sequence number string-interpolation ) + ( bracket delimiter function operator variable property))) (setq-local treesit-font-lock-settings python--treesit-settings) (setq-local imenu-create-index-function #'python-imenu-treesit-create-index)