Comment 11 for bug 961231

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 961231] Re: Broken font-locking

On Mar 23, 2012, at 08:43 AM, Andreas Roehler wrote:

>Am 23.03.2012 00:46, schrieb Barry Warsaw:
>> Actually, the 'mydict' case is still incorrect.
>>
>> def baz(mydict):
>> mydict['hello'] = 'baz'
>>
>>
>> 'mydict' gets fontlocked with font-lock-variable-name-face.
>
>hmm, isn't it a variable holding a dict?
>
>WDYT it should get?

I think it should get default face just like both lines inside this function:

def bar(mydict):
    mydict['foo'] = 7
    mydict = 7

The dict item assignment shouldn't color 'mydict' any differently.