emacs trunk revno: 101071 How to reproduce: 1/ emacs -Q test.py 2/ coloring is wrong starting L96 The test.py file is joint to this email. I tried to remove as many lines as possible: If you remove any line above L25 from the test.py file, the bug disappears... If you add or remove lines below L25, the line where the bug starts will still be L96.