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.
On Mar 23, 2012, at 08:43 AM, Andreas Roehler wrote:
>Am 23.03.2012 00:46, schrieb Barry Warsaw: variable- name-face.
>> Actually, the 'mydict' case is still incorrect.
>>
>> def baz(mydict):
>> mydict['hello'] = 'baz'
>>
>>
>> 'mydict' gets fontlocked with font-lock-
>
>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.