From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:01 +0000 (-0300) Subject: Fixed incorrect syntax highlighting for variable assignations X-Git-Tag: emacs-24.2.90~1199^2~606 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=534e24385bb1d5d022729e55d3d8cd2c6c114628;p=emacs.git Fixed incorrect syntax highlighting for variable assignations --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 69df0535054..76901aaa69e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -278,7 +278,8 @@ (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))