atom / language-python

Python package for Atom
Other
190 stars 146 forks source link

Python "self" does not have a class and cannot be edited in styles.less #324

Closed rpalloni closed 3 years ago

rpalloni commented 3 years ago

Prerequisites

Description

Python "self" does not have a css class and cannot be edited in styles.less. It is just "#text"

In fact, this is not working

.syntax--entity.syntax--name.syntax--function.syntax--self { color: #268bd2; } .syntax--variable.syntax--language.syntax--self.syntax--python { color: #268bd2; }

Steps to Reproduce

Simply write a python class with attributes and inspect with developer tools. You cannot reference "self" to edit the color in style.less

class Dog: def init(self, name, age): self.name = name self.age = age

self

rpalloni commented 3 years ago

apm dev language-python atom -d

"syntax--entity syntax--name syntax--variable syntax--self"