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

index 69df053505423b5ddd9b25e7c07c6f0bf0223bb4..76901aaa69e996c8db943706eafd4431f35e1f99 100644 (file)
           (when (re-search-forward re limit t)
             (while (and (not (equal (nth 0 (syntax-ppss)) 0))
                         (re-search-forward re limit t)))
-            (if (equal (nth 0 (syntax-ppss)) 0)
+            (if (and (equal (nth 0 (syntax-ppss)) 0)
+                     (not (equal (char-after (point-marker)) ?=)))
                 t
               (set-match-data nil)))))
      (1 font-lock-variable-name-face nil nil))