On Tue, Jun 19, 2012 at 1:06 AM, Glenn Morris wrote: > Thomas Riccardi wrote: > >> 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. > > Thanks for the report; sorry no-one ever replied. > > It looks like a complicated example file, and I don't know what I am > supposed to be seeing. Line 96 looks the same to me as line 95. Do you > still see this issue, and if so could you say exactly what is wrong? The test.py file is indeed an unnecessary complicated example. Here is a simpler file reproducing the issue: def test(): """""" return None The issue is the following: All the lines after the empty triple-quoted string are colored with the 'font-lock-string-face' face. This seems to be a legit python code: http://docs.python.org/reference/lexical_analysis.html#string-literals There is the same issue with triple-quoted strings using simple quotes '.