0

For some reason VS Code started highligting the caracter > in the arrow in functions -> with the color red

> highlighted in red

I try something like this in the settings.json file:

{
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": "keyword.operator.hyphen punctuation.definition.greater-than",
        "settings": {
          "foreground": "#1aff00"
        }
      }
    ]
  }
}

I think it is related to rust-analyzer highligting when the > doesn't match with a <, when I write <> it doesn't highlight that with red.

cafce25
  • 15,907
  • 4
  • 25
  • 31
01speed1
  • 1
  • 1
  • 1
    Something you can do is find "Inspect Editor Tokens and Scopes" in the command palette and see what token it is. – drewtato Apr 02 '23 at 05:14

0 Answers0