Skip to content

Python Syntax Highlighting is incomplete compared to VSCode? #2427

Answered by Zeddicus414
Zeddicus414 asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, this is where we are so far with help from @sudormrfbin. See the attached highlights.scm file.

highlights.txt

Helix VSCode

Some improvements:

  • Types are green (line 6 & 25). This was done by placing the type definition more toward the top of the SCM file
  • keyword.control allows most of the purple words that really increases readability, IMHO.

A few interesting things:

  • I figured out that the class name (line 21) is being classified as a @constant, but I haven't figured out how to separate the class definition from an actual CONSTANT definition at the top of the code. In this case, I just made constants green too. I think it looks better. Notice the CONSTANT on line 3.
  • V…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@Zeddicus414
Comment options

@Zeddicus414
Comment options

Comment options

You must be logged in to vote
3 replies
@archseer
Comment options

@valpackett
Comment options

@Zeddicus414
Comment options

Answer selected by pickfire
Comment options

You must be logged in to vote
1 reply
@David-Else
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants