Skip to content

Instantly share code, notes, and snippets.

@sgrankin
Created June 22, 2020 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgrankin/411d98c505e708b6ccd1b43a662bf3db to your computer and use it in GitHub Desktop.
Save sgrankin/411d98c505e708b6ccd1b43a662bf3db to your computer and use it in GitHub Desktop.
"editor.semanticTokenColorCustomizations": {
"[Massimo]": {
"enabled": true,
"rules": {
"*": { "foreground": "#090909" },
// Semantic token classification:
// Modules
"namespace": { "foreground": "#003D67" },
// Nominal Types
"type": { "foreground": "#C000C0" },
"class": { "foreground": "#C000C0" },
"enum": { "foreground": "#C000C0" },
"interface": { "foreground": "#C000C0" },
"struct": { "foreground": "#C000C0" },
"typeParameter": { "foreground": "#C000C0" },
// Variables
"parameter": {},
"variable": {},
"property": {},
"enumMember": {},
"event": {},
// Callables
"function": { "bold": true },
"member": { "bold": true },
"macro": { "bold": true },
// Labels
"label": {},
// Syntax
"comment": { "foreground": "#008000", "italic": true },
"string": { "foreground": "#A31515", "italic": true },
"keyword": { "foreground": "#0000FF" },
"number": { "foreground": "#FF0000" },
"regexp": { "foreground": "#A31515" },
"operator": {},
// Semantic token modifiers:
// Declaration
"*.declaration": {},
// Attributes
"*.readonly": {},
"*.static": {},
"*.deprecated": { "underline": true },
"*.abstract": {},
// Usage?
"*.async": {},
"*.modification": {},
"*.documentation": {},
"*.defaultLibrary": {},
// Rust specific:
"attribute:rust": {},
"boolean:rust": {}, // keyword
"builtinType:rust": {}, // type
"lifetime:rust": {},
"selfKeyword:rust": {}, // keyword
"typeAlias:rust": {}, // type
"union:rust": {}, // type
"formatSpecifier:rust": { "foreground": "#0000FF" },
"enumMember:rust": { "bold": true }, // Enum members are constructors
"unresolvedReference:rust": { "foreground": "#ff0000" }
}
}
},
"editor.suggest.localityBonus": true,
"editor.suggestSelection": "first",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment