diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:02 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:02 -0300 |
| commit | d8e594dba8ac82b52f6921dab08b42de751634b7 (patch) | |
| tree | 3d377b64db373101f1c220091df8215d855bafd0 /lisp/progmodes/python.el | |
| parent | 6eb68dc25b13771811fa7afc2d0b3b90347a57b9 (diff) | |
| download | emacs-d8e594dba8ac82b52f6921dab08b42de751634b7.tar.gz emacs-d8e594dba8ac82b52f6921dab08b42de751634b7.zip | |
Fixed highlighting for dictionary assignments
Diffstat (limited to 'lisp/progmodes/python.el')
| -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 0611a4c9b45..24f232bb98c 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -273,7 +273,8 @@ | |||
| 273 | ;; asignations | 273 | ;; asignations |
| 274 | ;; support for a = b = c = 5 | 274 | ;; support for a = b = c = 5 |
| 275 | (,(lambda (limit) | 275 | (,(lambda (limit) |
| 276 | (let ((re (python-rx (group (+ (any word ?. ?_))) (* space) | 276 | (let ((re (python-rx (group (+ (any word ?. ?_))) |
| 277 | (? ?\[ (+ (not (any ?\]))) ?\]) (* space) | ||
| 277 | assignment-operator))) | 278 | assignment-operator))) |
| 278 | (when (re-search-forward re limit t) | 279 | (when (re-search-forward re limit t) |
| 279 | (while (and (not (equal (nth 0 (syntax-ppss)) 0)) | 280 | (while (and (not (equal (nth 0 (syntax-ppss)) 0)) |