semantic
Semantic highlight tokenmap.
Provides language-specific semantic token color overrides for TypeScript, JavaScript, Python, and Rust. Semantic highlighting runs on top of TextMate syntax tokens and is applied by the language server.
Functions
Section titled “Functions”getSemantic()
Section titled “getSemantic()”getSemantic(
configuration,variant):object
Defined in: semantic.ts:31
Generates semantic token color mappings for the specified theme variant.
These tokens provide higher-fidelity highlighting than standard TextMate grammars by using information from language servers (e.g., distinguishing between a local variable and a built-in library property).
Note: semantic tokens use chromatic palette keys only (e.g.
"dark-aqua-500"). They are independent of the neutral prefix and therefore
unaffected by temperature or contrast settings.
Parameters
Section titled “Parameters”configuration
Section titled “configuration”— The theme configuration object.
variant
Section titled “variant”string
— The theme variant (“dark” or “light”).
Returns
Section titled “Returns”object
An object mapping semantic token selectors to hex color strings.
class:python
Section titled “class:python”class:python:
any
class:typescript
Section titled “class:typescript”class:typescript:
any
class:typescriptreact
Section titled “class:typescriptreact”class:typescriptreact:
any
enum:typescript
Section titled “enum:typescript”enum:typescript:
any
enum:typescriptreact
Section titled “enum:typescriptreact”enum:typescriptreact:
any
enumMember:typescript
Section titled “enumMember:typescript”enumMember:typescript:
any
enumMember:typescriptreact
Section titled “enumMember:typescriptreact”enumMember:typescriptreact:
any
interface:typescript
Section titled “interface:typescript”interface:typescript:
any
interface:typescriptreact
Section titled “interface:typescriptreact”interface:typescriptreact:
any
intrinsic:python
Section titled “intrinsic:python”intrinsic:python:
any
macro:rust
Section titled “macro:rust”macro:rust:
any
memberOperatorOverload
Section titled “memberOperatorOverload”memberOperatorOverload:
any
module:python
Section titled “module:python”module:python:
any
namespace:rust
Section titled “namespace:rust”namespace:rust:
any
namespace:typescript
Section titled “namespace:typescript”namespace:typescript:
any
namespace:typescriptreact
Section titled “namespace:typescriptreact”namespace:typescriptreact:
any
operatorOverload
Section titled “operatorOverload”operatorOverload:
any
property.defaultLibrary:javascript
Section titled “property.defaultLibrary:javascript”property.defaultLibrary:javascript:
any
property.defaultLibrary:javascriptreact
Section titled “property.defaultLibrary:javascriptreact”property.defaultLibrary:javascriptreact:
any
property.defaultLibrary:typescript
Section titled “property.defaultLibrary:typescript”property.defaultLibrary:typescript:
any
property.defaultLibrary:typescriptreact
Section titled “property.defaultLibrary:typescriptreact”property.defaultLibrary:typescriptreact:
any
selfKeyword:rust
Section titled “selfKeyword:rust”selfKeyword:rust:
any
variable.defaultLibrary:javascript
Section titled “variable.defaultLibrary:javascript”variable.defaultLibrary:javascript:
any
variable.defaultLibrary:javascriptreact
Section titled “variable.defaultLibrary:javascriptreact”variable.defaultLibrary:javascriptreact:
any
variable.defaultLibrary:typescript
Section titled “variable.defaultLibrary:typescript”variable.defaultLibrary:typescript:
any
variable.defaultLibrary:typescriptreact
Section titled “variable.defaultLibrary:typescriptreact”variable.defaultLibrary:typescriptreact:
any