projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a5aae
)
Fontify for_statement variable in python-ts-mode (bug#70718)
author
Noah Peart
<noah.v.peart@gmail.com>
Thu, 2 May 2024 13:58:34 +0000
(06:58 -0700)
committer
Yuan Fu
<casouri@gmail.com>
Thu, 9 May 2024 04:31:58 +0000
(21:31 -0700)
* lisp/progmodes/python.el (python--treesit-settings): Add
font-lock query for for_statement variable in assignment feature.
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 7f28f5835433fd253dcbf4ffc798240ad7fd6ce1..764ef03da8a34a1fb6e724f962bb7ebdf979462a 100644
(file)
--- 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)