Python Syntax Highlighting is incomplete compared to VSCode? #2427
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
(I edited the images in the question to be side by side so that it's easier to see the distinction if that's okay with you.) The problem is that the highlight captures for python aren't as detailed as it could be, for example control keywords like helix/runtime/queries/python/highlights.scm Lines 91 to 121 in ee889aa As for the type names of For highlighting the |
Beta Was this translation helpful? Give feedback.
-
Alright, this is where we are so far with help from @sudormrfbin. See the attached highlights.scm file.
Some improvements:
A few interesting things:
This is definitely close enough for my purposes. If I want to commit these changes to the projects, is that okay? I'm not sure if this can mess up any of the other themes. I think it's a clear improvement for this one. It's certainly good enough that I feel comfortable using it. |
Beta Was this translation helpful? Give feedback.
-
Neovim's tree-sitter queries also seem better: Is there a reason why we wouldn't want to use some unified set of queries between different editors? Are tree-sitter queries necessarily editor-specific? |
Beta Was this translation helpful? Give feedback.
Alright, this is where we are so far with help from @sudormrfbin. See the attached highlights.scm file.
highlights.txt
Some improvements:
A few interesting things: