bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6853: 24.0.50; python mode coloring broke


From: Thomas Riccardi
Subject: bug#6853: 24.0.50; python mode coloring broke
Date: Sat, 23 Jun 2012 23:58:21 +0200

On Tue, Jun 19, 2012 at 1:06 AM, Glenn Morris <rgm@gnu.org> 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 '.

Attachment: test2.py
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]