Bad Syntax Highlighting

I would like to write in Rescript more, but the syntax highlighting is one of the biggest reasons why I don’t. Coming from F#, it feels like I’m writing in notepad. I searched and found this topic, and it looks amazing, but I don’t know how to get it. Most of my code is white. I am using Deep Ocean material theme.

Is there any way I could improve it?

the most common issue is the theme not supporting some grammar. (Is this even the correct name?)

Just try other themes. I’m currently not at my computer, but will try to come back to you tomorrow with my installed themes.

Your theme is not supported.

The name of token colors should be the same in rescript grammar.

You can improve it.

  1. Open VSCode
  2. ctrl+p and go to Developer: Inspect Editor Tokens and Scope
  3. Hover some code. Example below
  4. Open settings.json and type:
"editor.semanticTokenColorCustomizations": {
        // Override token colors
        // Theme name
        "[Community Material Theme Darker High Contrast]": {
            "enabled": true,
            "rules": {
                // Name of semantic token
                "property": "#ffdfb6",

The officially supported themes are listed here: