Why is self not fontified?

Asked by Daniel Gonzalez

Hi,

I have seen the following code:

        (,(rx symbol-start
              (or "cls"
                  ;; "self"
                  "cls" "Ellipsis" "True" "False" "None" "__debug__" "NotImplemented")
              symbol-end) . py-pseudo-keyword-face)
        ;; Decorators.

Around line 3851 in python-mode.el. Why is "self" taken out from the fontification rules? Is there any way to add it, without modifying the source? (I am pulling the sources with el-get)

Thanks!
Daniel Gonzalez

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

Am 04.03.2014 10:36, schrieb Daniel Gonzalez:
> New question #244955 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/244955
>
> Hi,
>
> I have seen the following code:
>
> (,(rx symbol-start
> (or "cls"
> ;; "self"
> "cls" "Ellipsis" "True" "False" "None" "__debug__" "NotImplemented")
> symbol-end) . py-pseudo-keyword-face)
> ;; Decorators.
>
> Around line 3851 in python-mode.el. Why is "self" taken out from the fontification rules? Is there any way to add it, without modifying the source? (I am pulling the sources with el-get)
>
> Thanks!
> Daniel Gonzalez
>
>

Hi,

it's just, because tastes differ. If more user wants it, we may change that. As "self" doesn't bear much meaning by itself, would prefer it not fontified.

Andreas

Can you help with this problem?

Provide an answer of your own, or ask Daniel Gonzalez for more information if necessary.

To post a message you must log in.