From 2168b2c788057d1da6f5c330a465cdfc1f9e66f1 Mon Sep 17 00:00:00 2001 From: Noah Peart Date: Thu, 2 May 2024 06:58:34 -0700 Subject: [PATCH] Add font-locking for for_statement variable in python-ts-mode * lisp/progmodes/python.el (python--treesit-settings): Add font-lock query for for_statement variable in assignment feature. --- lisp/progmodes/python.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5ba185bc60c..13e243be208 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1251,6 +1251,7 @@ python--treesit-settings @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.34.1