Created
July 22, 2022 21:46
-
-
Save Proful/6832b3551fe44aba39a04c3a1fba22b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"editor.tokenColorCustomizations": { | |
"[Community Material Theme]": { | |
"textMateRules": [ | |
{ | |
"scope": [ | |
"comment", | |
], | |
"settings": { | |
"foreground": "#6a737d", | |
"fontStyle": "italic" | |
} | |
}, | |
{ | |
// comma in function call (two-argument function) | |
"scope": "meta.function.definition.rust", | |
"settings": { | |
"foreground": "#777777" | |
} | |
}, | |
{ | |
"scope": [ | |
"string.quoted.double.rust", | |
"string.quoted.double.tsx", | |
"string.quoted.double.ts", | |
"string.template.tsx", | |
"string.template.ts", | |
], | |
"settings": { | |
"foreground": "#94a3b8" | |
} | |
}, | |
{ | |
"scope": "punctuation.brackets.angle.rust", | |
"settings": { | |
"foreground": "#8d99ae" | |
} | |
}, | |
// Ok, Err | |
{ | |
"scope": "entity.name.type.result.rust", | |
"settings": { | |
"foreground": "#e6d0e5" | |
} | |
}, | |
{ | |
"scope": "entity.name.type.numeric.rust", | |
"settings": { | |
"foreground": "#c3d2cf" | |
} | |
}, | |
{ | |
"scope": [ | |
"entity.name.type.enum.rust", | |
"entity.name.type.struct.rust" | |
], | |
"settings": { | |
"foreground": "#e9d8a6" | |
} | |
}, | |
{ | |
"scope": "entity.name.function.macro.rust", | |
"settings": { | |
"foreground": "#94a3b8", | |
} | |
}, | |
{ | |
// numbers 1, 2, 3 | |
"scope": "constant.numeric.decimal.rust", | |
"settings": { | |
"foreground": "#c9ada7" | |
} | |
}, | |
{ | |
"scope": [ | |
"keyword.operator.math.tsx", | |
"keyword.operator.math.rust" | |
], | |
"settings": { | |
"foreground": "#a7a7a7" | |
} | |
}, | |
{ | |
"scope": "keyword.operator.assignment.equal.tsx", | |
"settings": { | |
"foreground": "#5f5f5f", | |
} | |
}, | |
{ | |
"scope": "meta.use.rust", | |
"settings": { | |
"foreground": "#b7e4c7", | |
} | |
}, | |
{ | |
"scope": "punctuation.brackets.attribute.rust", | |
"settings": { | |
"foreground": "#80CBC4" | |
} | |
}, | |
{ | |
// String:: | |
"scope": "entity.name.type.rust", | |
"settings": { | |
"foreground": "#8be9fd" | |
} | |
}, | |
{ | |
// await, return | |
"scope": [ | |
"keyword.control.export.ts", | |
"keyword.control.export.tsx", | |
"keyword.control.import.ts", | |
"keyword.control.import.tsx", | |
"keyword.control.from.tsx", | |
"keyword.control.from.ts" | |
], | |
"settings": { | |
"foreground": "#396777", | |
"fontStyle": "italic" | |
} | |
}, | |
{ | |
"scope": [ | |
"punctuation.definition.attribute.rust", | |
"meta.attribute.rust" | |
], | |
"settings": { | |
"foreground": "#0891b2" | |
} | |
}, | |
{ | |
// reqwest::blocking | |
"scope": [ | |
"entity.name.namespace.rust", | |
// "storage.type.function.tsx" //function | |
], | |
"settings": { | |
"foreground": "#05dacf" | |
} | |
}, | |
{ | |
// let keyword | |
"scope": [ | |
"keyword.other.rust storage.type.rust", | |
], | |
"settings": { | |
"foreground": "#00beff" | |
} | |
}, | |
{ | |
"scope": [ | |
"keyword.operator.borrow.and.rust", | |
], | |
"settings": { | |
"foreground": "#5773ff", | |
"fontStyle": "bold" | |
} | |
}, | |
{ | |
// let name = "keyword" color for name | |
"scope": [ | |
"variable.other.rust", | |
"variable.other.tsx", | |
"keyword.operator.assignment.equal.rust" | |
], | |
"settings": { | |
"foreground": "#a58bdd" | |
} | |
}, | |
{ | |
"scope": [ | |
"string.quoted.single.char.rust", | |
"string.quoted.single.char.tsx", | |
], | |
"settings": { | |
"foreground": "#ecdd0d" | |
} | |
}, | |
{ | |
"scope": [ | |
"variable.language.self.rust", | |
], | |
"settings": { | |
"foreground": "#f48c06", | |
} | |
}, | |
{ | |
"scope": "storage.modifier.mut.rust", | |
"settings": { | |
"foreground": "#fe7f2d", | |
"fontStyle": "underline" | |
} | |
}, | |
{ | |
"scope": [ | |
"keyword.declaration.struct.rust storage.type.rust", | |
"keyword.declaration.trait.rust storage.type.rust", | |
], | |
"settings": { | |
"foreground": "#c8855f", | |
} | |
}, | |
{ | |
"scope": "punctuation.definition.lifetime.rust", | |
"settings": { | |
"foreground": "#886b6b" | |
} | |
}, | |
{ | |
"scope": "meta.interpolation.rust", | |
"settings": { | |
"foreground": "#754f5b" | |
} | |
}, | |
{ | |
"scope": [ | |
"entity.name.type.declaration.rust", | |
], | |
"settings": { | |
"foreground": "#b4788b", | |
} | |
}, | |
{ | |
// tr | |
"scope": "constant.language.bool.rust", | |
"settings": { | |
"foreground": "#a14a34" | |
} | |
}, | |
{ | |
// await, return | |
"scope": [ | |
"keyword.control.flow.tsx", | |
"keyword.control.flow.ts", //await, return | |
"storage.modifier.async.ts", | |
"storage.modifier.async.tsx", | |
"keyword.other.rust" | |
], | |
"settings": { | |
"foreground": "#ff4d6d", | |
"fontStyle": "italic" | |
} | |
}, | |
{ | |
"scope": "keyword.operator.borrow.rust", | |
"settings": { | |
"foreground": "#fe6d73" | |
} | |
}, | |
{ | |
"scope": "keyword.declaration.enum.rust storage.type.rust", | |
"settings": { | |
"foreground": "#c85f5f" | |
} | |
}, | |
{ | |
"scope": "entity.name.type.lifetime.rust", | |
"settings": { | |
"foreground": "#db7b7b" | |
} | |
}, | |
{ | |
"scope": "keyword.operator.namespace.rust", | |
"settings": { | |
"foreground": "#c37a7a" | |
} | |
}, | |
{ | |
"scope": [ | |
"entity.name.type.option.rust", | |
], | |
"settings": { | |
"foreground": "#ff9efa" | |
} | |
}, | |
{ | |
"scope": [ | |
"entity.name.type.result.tsx", | |
"keyword.operator.tsx" | |
], | |
"settings": { | |
"foreground": "#b106a8" | |
} | |
}, | |
{ | |
// await|break|continue|do|else|for|if|loop|match|return|try|while|yield | |
"scope": [ | |
"keyword.control.rust", | |
"keyword.control.tsx", | |
"support.type.object.tsx" | |
], | |
"settings": { | |
"foreground": "#FF39A8", | |
} | |
}, | |
{ | |
"scope": [ | |
"keyword.other.fn.rust", | |
"storage.type.function.tsx", //function | |
"storage.type.function.ts", //function | |
"keyword.control.loop.ts", | |
"keyword.control.loop.tsx", | |
// "keyword.control.conditional.ts", | |
// "keyword.control.conditional.tsx", | |
], | |
"settings": { | |
"foreground": "#f3589e", | |
"fontStyle": "italic" | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.object-literal.key.tsx", // object key | |
"meta.object-literal.key.ts", | |
], | |
"settings": { | |
"foreground": "#76c893", | |
"fontStyle": "italic" | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.definition.function.tsx entity.name.function.tsx" //App() | |
], | |
"settings": { | |
"foreground": "#48cae4", | |
} | |
}, | |
{ | |
"scope": [ | |
"constant.numeric" | |
], | |
"settings": { | |
"foreground": "#b4c0c0", | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.function.tsx meta.function-call.tsx variable.other.object.tsx" | |
], | |
"settings": { | |
"foreground": "#ffba08", | |
} | |
}, | |
{ | |
"scope": [ | |
"variable.other.object.property.tsx" | |
], | |
"settings": { | |
"foreground": "#e4a2ad", | |
} | |
}, | |
{ | |
"scope": [ | |
"variable.other.property.tsx" | |
], | |
"settings": { | |
"foreground": "#e7cfd3", | |
} | |
}, | |
{ | |
"scope": [ | |
"variable.other.readwrite.alias.ts", | |
"entity.name.function.ts", | |
"variable.other.readwrite.alias.tsx", | |
"entity.name.function.tsx", | |
], | |
"settings": { | |
"foreground": "#e2d074", | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.import.ts variable.other.readwrite.alias.ts", | |
"meta.import.tsx variable.other.readwrite.alias.tsx", | |
], | |
"settings": { | |
"foreground": "#94A3B8", | |
} | |
}, | |
{ | |
"scope": [ | |
"variable.other.readwrite.ts", | |
"variable.other.constant.ts", | |
"variable.other.readwrite.tsx", | |
"variable.other.constant.tsx", | |
"variable.other.object.tsx", | |
"meta.block.tsx meta.function-call.tsx variable.other.object.tsx", | |
"meta.parameters.tsx variable.parameter.tsx", | |
"meta.block.tsx meta.var.expr.tsx meta.function-call.tsx variable.other.object.tsx", | |
"meta.block.tsx meta.block.tsx meta.function-call.tsx variable.other.object.tsx", | |
"meta.var.expr.tsx meta.parameters.tsx meta.type.annotation.tsx variable.object.property.tsx" | |
], | |
"settings": { | |
"foreground": "#80bff6", | |
// "foreground": "#C792EA", | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.return.type.arrow.ts meta.type.parameters.ts entity.name.type.ts", | |
"meta.var.expr.ts entity.name.type.ts", //QuizOption[] | |
"meta.return.type.arrow.tsx meta.type.parameters.tsx entity.name.type.tsx", | |
"meta.var.expr.tsx entity.name.type.tsx", | |
], | |
"settings": { | |
"foreground": "#f5daa8", | |
} | |
}, | |
{ | |
"scope": [ | |
//Promise<QuizOption[]> => Promise | |
"meta.return.type.arrow.ts entity.name.type.ts", | |
"meta.return.type.arrow.ts entity.name.type.tsx", | |
], | |
"settings": { | |
"foreground": "#b08968", | |
"fontStyle": "bold" | |
} | |
}, | |
{ | |
"scope": [ | |
"support.class.component.tsx", | |
], | |
"settings": { | |
"foreground": "#e2abab", | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.var.expr.tsx meta.arrow.tsx meta.block.tsx meta.function-call.tsx entity.name.function.tsx", | |
], | |
"settings": { | |
"foreground": "#f8858b", | |
"fontStyle": "italic" | |
} | |
}, | |
{ | |
"scope": [ | |
//invoke("gen_quiz_options") => invoke | |
"meta.function-call.ts entity.name.function.ts", | |
"meta.function-call.tsx entity.name.function.tsx", | |
"meta.var.expr.tsx meta.arrow.tsx meta.block.tsx meta.var.expr.tsx meta.function-call.tsx entity.name.function.tsx", | |
"meta.var.expr.tsx meta.arrow.tsx meta.block.tsx meta.arrow.tsx meta.block.tsx meta.function-call.tsx entity.name.function.tsx", | |
"meta.var.expr.tsx meta.arrow.tsx meta.block.tsx meta.block.tsx meta.function-call.tsx entity.name.function.tsx", | |
], | |
"settings": { | |
"foreground": "#00beff", | |
// "foreground": "#05DACF", | |
// "foreground": "#82AAFF", | |
"fontStyle": "bold" | |
} | |
}, | |
{ | |
"scope": [ | |
"meta.var.expr.tsx storage.type.tsx" | |
], | |
"settings": { | |
// "foreground": "#00BEFF", | |
"fontStyle": "italic" | |
} | |
}, | |
] | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment