Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semantic syntax higlighting similar to pylance #237

Open
geetmankar opened this issue Sep 4, 2023 · 4 comments
Open

Add semantic syntax higlighting similar to pylance #237

geetmankar opened this issue Sep 4, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@geetmankar
Copy link

geetmankar commented Sep 4, 2023

Hi,

This is an enhancement proposal. Just wanted to know if it will be at all possible to color imported modules, classes (when they're used in type annotations), generics, and functions like VSCode PyLance does, or if it is out of the scope of this project.

Without PyLance:
image
image

With PyLance:
image
image

I feel like this can be very helpful to distinguish between what's being imported object is a class or a generic/type alias at a glance.

@MichaReiser MichaReiser added the question Further information is requested label Sep 5, 2023
@MichaReiser
Copy link
Member

Do you know if what you're referring to is Pylane's semantic highlighting feature?

@geetmankar
Copy link
Author

Do you know if what you're referring to is Pylane's semantic highlighting feature?

That seems to be exactly what I was referring to.

@MichaReiser MichaReiser changed the title Coloring modules, classes, generics and functions like PyLance Add semantic syntax higlighting similar to pylance Sep 5, 2023
@MichaReiser MichaReiser added enhancement New feature or request question Further information is requested and removed question Further information is requested labels Sep 5, 2023
@MichaReiser MichaReiser removed the question Further information is requested label Apr 3, 2024
@ntluong95
Copy link

Is there any news about this feature?

@MithicSpirit
Copy link

probably blocking on red knot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants