Subject: bug#6445: [PATCH] python-font-lock-keywords: Highlight top-level augmented assignments

From: Deniz Dogan <[email-masked]>
Date: Thu, 17 Jun 2010 17:01:43 +0200

The variable names in top-level variable assignments are currently
highlighted with font-lock-variable-name-face. However, augmented
assignments are not supported, i.e. things such as +=, -=, etc.

I don't have any diff-like program at the moment, so please accept my faked one:

L113 python.el:
-    (,(rx line-start (group (1+ (or word ?_))) (0+ space) "=")
+    (,(rx line-start (group (1+ (or word ?_))) (0+ space)
+          (opt (or "+" "-" "*" "**" "/" "//" "&" "%" "|" "^" "<<" ">>")) "=")

Documentation: http://docs.python.org/reference/simple_stmts.html#grammar-token-augmented_assignment_stmt

--
Deniz Dogan