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

Implement semantic highlighting #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JasperDeSutter
Copy link
Contributor

There are some serious limitations with the monaco version of vscode semantic highlighting.
There's no option to define any relation of token types, only a one-to-one mapping with highlighting. This means any custom types need an extra highlighting rule.
For this reason, I mapped custom ra SymbolKinds to existing monaco token types where it made sense. Modfiers don't do much out of the box, but I've added an underline rule for mutable variables as that is quite common.

@HKalbasi
Copy link
Member

HKalbasi commented Dec 8, 2021

There was a laggy implementation that I dropped, but this one looks good!

Can you add a color for enum variants as well? They are now colored like functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants