From 30347d40a4d43b16cabe44f570cdff74cdbfeebd Mon Sep 17 00:00:00 2001 From: Noah Peart Date: Thu, 2 May 2024 06:58:34 -0700 Subject: [PATCH] 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) --- lisp/progmodes/python.el | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5