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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to