From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:02 +0000 (-0300) Subject: Fixed highlighting for dictionary assignments X-Git-Tag: emacs-24.2.90~1199^2~604 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8e594dba8ac82b52f6921dab08b42de751634b7;p=emacs.git Fixed highlighting for dictionary assignments --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0611a4c9b45..24f232bb98c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -273,7 +273,8 @@ ;; asignations ;; support for a = b = c = 5 (,(lambda (limit) - (let ((re (python-rx (group (+ (any word ?. ?_))) (* space) + (let ((re (python-rx (group (+ (any word ?. ?_))) + (? ?\[ (+ (not (any ?\]))) ?\]) (* space) assignment-operator))) (when (re-search-forward re limit t) (while (and (not (equal (nth 0 (syntax-ppss)) 0))