`self` argument not syntax-highlighted (but `cls` is)

Bug #1295087 reported by Matthew Willson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Wishlist
Andreas Roehler

Bug Description

Not technically a keyword I know, but I'd normally expect `self` arguments to be syntax-highlighted, in the argument list and for method calls. E.g.

def foo(self, a, b, c):
    self.bar()

Note that this does seem to happen for `cls` arguments:

@classmethod
def foo(cls, a, b, c):
    cls.bar()

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1295087] [NEW] `self` argument not syntax-highlighted (but `cls` is)

Am 20.03.2014 12:36, schrieb Matthew Willson:
> Public bug reported:
>
> Not technically a keyword I know, but I'd normally expect `self`
> arguments to be syntax-highlighted, in the argument list and for method
> calls. E.g.
>
> def foo(self, a, b, c):
> self.bar()
>
> Note that this does seem to happen for `cls` arguments:
>
> @classmethod
> def foo(cls, a, b, c):
> cls.bar()
>

Providing this as an option should make no difficulty.

Changed in python-mode:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.2.0
Changed in python-mode:
status: Triaged → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.