]> git.eshelyaron.com Git - emacs.git/commitdiff
Fontify for_statement variable in python-ts-mode (bug#70718)
authorNoah Peart <noah.v.peart@gmail.com>
Thu, 2 May 2024 13:58:34 +0000 (06:58 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 10 May 2024 13:33:37 +0000 (15:33 +0200)
* 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

index 7f28f5835433fd253dcbf4ffc798240ad7fd6ce1..764ef03da8a34a1fb6e724f962bb7ebdf979462a 100644 (file)
@@ -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)