[Python-mode] Python mode decorators-face
Barry Warsaw
barry at python.org
Mon Mar 28 16:51:00 CEST 2011
On Mar 28, 2011, at 03:41 PM, David Miller wrote:
>I frequently use decorators from libraries named like:
>
>@patch.object(Foo, 'bar')
>def func(arg):
> # etc
>
>The regex for py-decorators-face only matches the patch section, leaving the
>object part set to the default face ( M-x describe-face => Face: default)
>
>To my eye this looks like the wrong highlighting, was wondering if this was
>considered a feature or a bug :)
The fact that Foo and 'bar' are not in decorator face is a feature, but the
fact that @patch.object (and perhaps the parentheses) is not is a bug, IMO.
>The alteration to the regex is dead simple, was wondering if I should go
>through the launchpad bug-report - patch cycle or just continue to override
>it my end?
Please do submit a bug report!
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20110328/c0c320d0/attachment.pgp>
More information about the Python-mode
mailing list