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

Syntax highlighting: support more themes. #406

Merged
merged 3 commits into from
May 6, 2022
Merged

Syntax highlighting: support more themes. #406

merged 3 commits into from
May 6, 2022

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented May 5, 2022

Instead of semantic token type use support.type.primitive from the grammar. This is what TypeScript does too.

For keywords from the grammar, use storage.type instead of keyword. Again this is taken from what TS does.

This change is a no-op on the themes considered so far. But improves theme Solarized Light and One Dark Pro.

Remove Mariana Pro (Warm) from the list of recommended themes, as it seems to disable semantic highlighting entirely.
Looks like TS has the same problem there.

Instead of semantic token `type` use `support.type` from the grammar. This is what TypeScript does too.

For keywords from the grammar, use `storage.type` instead of `keyword`. Again this is taken from what TS does.

This change is a no-op on the themes considered so far. But improves theme `Solarized Light`.

There seems to be no way to fix `Mariana Pro (Warm)`, which completely disables semantic highlighting. Looks like TS has the same problem there.
@cristianoc cristianoc merged commit fb521f4 into master May 6, 2022
@cristianoc cristianoc deleted the more-themes branch May 6, 2022 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant