Skip to content

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.

cristianoc added 3 commits May 5, 2022 10:37
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