[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102465: Highlight top-level augmente
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102465: Highlight top-level augmented assignments in Python (Bug#6445). |
Date: |
Sun, 21 Nov 2010 12:12:44 -0500 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102465
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Sun 2010-11-21 12:12:44 -0500
message:
Highlight top-level augmented assignments in Python (Bug#6445).
* progmodes/python.el (python-font-lock-keywords): Highlight
top-level augmented assignments (Bug#6445).
modified:
lisp/ChangeLog
lisp/progmodes/python.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2010-11-21 13:09:34 +0000
+++ b/lisp/ChangeLog 2010-11-21 17:12:44 +0000
@@ -1,3 +1,8 @@
+2010-11-21 Deniz Dogan <address@hidden>
+
+ * progmodes/python.el (python-font-lock-keywords): Highlight
+ top-level augmented assignments (Bug#6445).
+
2010-11-21 Jan Djärv <address@hidden>
* term/ns-win.el (ns-right-control-modifier)
=== modified file 'lisp/progmodes/python.el'
--- a/lisp/progmodes/python.el 2010-11-18 03:54:14 +0000
+++ b/lisp/progmodes/python.el 2010-11-21 17:12:44 +0000
@@ -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 ?_))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102465: Highlight top-level augmented assignments in Python (Bug#6445).,
Chong Yidong <=