diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:01 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:01 -0300 |
| commit | 534e24385bb1d5d022729e55d3d8cd2c6c114628 (patch) | |
| tree | fae306e03d91268a851006c5de9ab91b8f9e18fa | |
| parent | 14d9f80c0d82a9c13f6e1e627eeb5ebac41a009a (diff) | |
| download | emacs-534e24385bb1d5d022729e55d3d8cd2c6c114628.tar.gz emacs-534e24385bb1d5d022729e55d3d8cd2c6c114628.zip | |
Fixed incorrect syntax highlighting for variable assignations
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
| 278 | (when (re-search-forward re limit t) | 278 | (when (re-search-forward re limit t) |
| 279 | (while (and (not (equal (nth 0 (syntax-ppss)) 0)) | 279 | (while (and (not (equal (nth 0 (syntax-ppss)) 0)) |
| 280 | (re-search-forward re limit t))) | 280 | (re-search-forward re limit t))) |
| 281 | (if (equal (nth 0 (syntax-ppss)) 0) | 281 | (if (and (equal (nth 0 (syntax-ppss)) 0) |
| 282 | (not (equal (char-after (point-marker)) ?=))) | ||
| 282 | t | 283 | t |
| 283 | (set-match-data nil))))) | 284 | (set-match-data nil))))) |
| 284 | (1 font-lock-variable-name-face nil nil)) | 285 | (1 font-lock-variable-name-face nil nil)) |