]> git.eshelyaron.com Git - emacs.git/commitdiff
Fixed highlighting for dictionary assignments
authorFabián Ezequiel Gallina <fgallina@cuca>
Thu, 17 May 2012 03:03:02 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:02 +0000 (00:03 -0300)
lisp/progmodes/python.el

index 0611a4c9b4554deda2bdb80581efd5ee3689aa20..24f232bb98c78808b11eb3ed952c114f19fef14c 100644 (file)
     ;; 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))