diff options
| author | Noah Peart | 2024-05-02 06:58:34 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-05-08 21:31:58 -0700 |
| commit | 24c02c700cad3ed94687cf694856a0bee42405ba (patch) | |
| tree | 3beba163dd62ccc3b073dc6bc1717c52012f8e34 /lisp/progmodes/python.el | |
| parent | c6a5aae3da17459be7550c8f183c0c350ba8ccb0 (diff) | |
| download | emacs-24c02c700cad3ed94687cf694856a0bee42405ba.tar.gz emacs-24c02c700cad3ed94687cf694856a0bee42405ba.zip | |
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.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 1251 | @font-lock-variable-name-face) | 1251 | @font-lock-variable-name-face) |
| 1252 | (named_expression name: (identifier) | 1252 | (named_expression name: (identifier) |
| 1253 | @font-lock-variable-name-face) | 1253 | @font-lock-variable-name-face) |
| 1254 | (for_statement left: (identifier) @font-lock-variable-name-face) | ||
| 1254 | (pattern_list [(identifier) | 1255 | (pattern_list [(identifier) |
| 1255 | (list_splat_pattern (identifier))] | 1256 | (list_splat_pattern (identifier))] |
| 1256 | @font-lock-variable-name-face) | 1257 | @font-lock-variable-name-face) |