From 534e24385bb1d5d022729e55d3d8cd2c6c114628 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:01 -0300 Subject: [PATCH] Fixed incorrect syntax highlighting for variable assignations --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.5