Closed
Description
VS Code is implementing an API for Semantic Colorization. microsoft/vscode#86415
Opening this issue to switching to using that instead of our own semantic colorization implementation.
Proposed mappings from our tokens to VS Code tokens:
Token | old TextMate Scope | new Token Type | standard/custom | new Token Modifier | Fallback |
---|---|---|---|---|---|
Class Template | entity.name.type.class.templated | templateType | custom | type | |
Enumerator | variable.other.enummember | enumMember | standard | ||
Event (C++/CLI) | variable.other.event | event | standard | property | |
Function | entity.name.function | function | standard | ||
Function Template | entity.name.function.templated | templateFunction | custom | function | |
Generic Type (C++/CLI) | entity.name.type.class.generic | genericType | custom | type | |
Global Variable | variable.other.global | variable | standard | global | |
Label | entity.name.label | label | standard | ||
Local Variable | variable.other.local | variable | standard | local | |
Macro | entity.name.function.preprocessor | macro | standard | ||
Member Field | variable.other.property | property | standard | ||
Member Function | entity.name.function.member | member | standard | ||
Namespace | entity.name.namespace | namespace | standard | ||
New / Delete | keyword.operator.new | newOperator | custom | operator | |
Operator Overload Function | entity.name.function.operator | operatorOverload | custom | operator | |
Operator Overload Member | entity.name.function.operator.member | memberOperatorOverload | custom | operator | |
Parameter | variable.parameter | parameter | standard | ||
Property (C++/CLI) | variable.other.property.cli | cliProperty | custom | property | |
Reference Type (C++/CLI) | entity.name.type.class.reference | referenceType | custom | type | |
Static Member Field | variable.other.property.static | property | standard | static | |
Static Member Function | entity.name.function.member.static | member | standard | static | |
Type | entity.name.type | type | standard | ||
User-Defined Literal - Number | entity.name.operator.custom-literal.number | numberLiteral | custom | number | |
User-Defined Literal - Raw | entity.name.operator.custom-literal | customLiteral | custom | ||
User-Defined Literal - String | entity.name.operator.custom-literal.string | stringLiteral | custom | string | |
Value Type (C++/CLI) | entity.name.type.class.value | valueType | custom | type |