From: Noah Peart Date: Thu, 2 May 2024 13:58:34 +0000 (-0700) Subject: Fontify for_statement variable in python-ts-mode (bug#70718) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30347d40a4d43b16cabe44f570cdff74cdbfeebd;p=emacs.git Fontify for_statement variable in python-ts-mode (bug#70718) * lisp/progmodes/python.el (python--treesit-settings): Add font-lock query for for_statement variable in assignment feature. (cherry picked from commit 24c02c700cad3ed94687cf694856a0bee42405ba) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7f28f583543..764ef03da8a 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1251,6 +1251,7 @@ fontified." @font-lock-variable-name-face) (named_expression name: (identifier) @font-lock-variable-name-face) + (for_statement left: (identifier) @font-lock-variable-name-face) (pattern_list [(identifier) (list_splat_pattern (identifier))] @font-lock-variable-name-face)