Re: [Python-mode] Add lambda: as a font-lock keyword

2011-02-03 Thread Barry Warsaw
On Feb 03, 2011, at 07:10 PM, Dan Davison wrote: >Is there any reason not to highlight "lambda:" as a keyword, i.e. when >it's immediately followed by a colon? The patch below takes a stab at >that. I guess it might be ideal if the colon were not highlighted; I >didn't look into that. Nope, it's

Re: [Python-mode] Add lambda: as a font-lock keyword

2011-02-03 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Right, this has bothered me as well a few times. +1 for the patch. Georg Am 03.02.2011 20:10, schrieb Dan Davison: > Is there any reason not to highlight "lambda:" as a keyword, i.e. when > it's immediately followed by a colon? The patch below takes

[Python-mode] Add lambda: as a font-lock keyword

2011-02-03 Thread Dan Davison
Is there any reason not to highlight "lambda:" as a keyword, i.e. when it's immediately followed by a colon? The patch below takes a stab at that. I guess it might be ideal if the colon were not highlighted; I didn't look into that. Thanks very much for the python-mode code and please tell me if t