Commit 4e2f7d2a authored by Chong Yidong's avatar Chong Yidong
Browse files

Highlight top-level augmented assignments in Python (Bug#6445).

* progmodes/python.el (python-font-lock-keywords): Highlight
top-level augmented assignments (Bug#6445).
parent 731e263a
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 ?_))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment