mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
Highlight top-level augmented assignments in Python (Bug#6445).
* progmodes/python.el (python-font-lock-keywords): Highlight top-level augmented assignments (Bug#6445).
This commit is contained in:
parent
731e263a73
commit
4e2f7d2a68
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2010-11-21 Deniz Dogan <deniz.a.m.dogan@gmail.com>
|
||||
|
||||
* progmodes/python.el (python-font-lock-keywords): Highlight
|
||||
top-level augmented assignments (Bug#6445).
|
||||
|
||||
2010-11-21 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* term/ns-win.el (ns-right-control-modifier)
|
||||
|
|
|
|||
|
|
@ -110,7 +110,8 @@
|
|||
(,(rx symbol-start (group "def") (1+ space) (group (1+ (or word ?_))))
|
||||
(1 font-lock-keyword-face) (2 font-lock-function-name-face))
|
||||
;; Top-level assignments are worth highlighting.
|
||||
(,(rx line-start (group (1+ (or word ?_))) (0+ space) "=")
|
||||
(,(rx line-start (group (1+ (or word ?_))) (0+ space)
|
||||
(opt (or "+" "-" "*" "**" "/" "//" "&" "%" "|" "^" "<<" ">>")) "=")
|
||||
(1 font-lock-variable-name-face))
|
||||
;; Decorators.
|
||||
(,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue