Oblivion++
Publisher: parityb1tThemes in package: 1
Oblivion theme for C++
Oblivion theme for C++
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| punctuation.definition.directive, keyword.control.directive | #ef2929 | bold |
| entity.name.scope-resolution | #ef2929 | |
| entity.name.namespace, meta.body.namespace.cpp | #8ae234 | |
| entity.name.type, storage.type.primitive, storage.type.user-defined, meta.function.definition.parameters.cpp, storage.type | #8ae234 | |
| storage.type.class, storage.type.template.cpp, storage.type.template.argument.class, storage.type.namespace.definition.cpp, storage.type.namespace.directive.cpp | #ad7fa8 | bold |
| comment, punctuation.definition.comment | #888a85 | |
| string, punctuation.definition.string | #fce94f | |
| punctuation.section, punctuation.definition, punctuation.separator, punctuation.terminator, meta.function.definition.special.constructor | #eeeeec | |
| meta.body.function.definition, meta.block, variable.parameter.cpp, variable.other.object.access.cpp | #eeeeec | |
| constant.character, constant.other, constant.numeric.decimal.cpp | #ce5c00 | |
| entity.name.function | #729fcf | |
| variable.other.property, variable.other.object.property.cpp, variable.other.object.cpp | #8ae234 | |
| meta.conditional.case.cpp | #8ae234 | |
| keyword | #ad7fa8 | bold |
| storage.modifier, storage.type.modifier.access.public.cpp, storage.type.modifier.access.private.cpp, storage.type.modifier.access.protected.cpp, storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp, storage.type.modifier.access.control.protected.cpp | #ad7fa8 | bold |
| constant.language.c, constant.language.cpp, constant.language.true.cpp, constant.language.false.cpp | #ef2929 | |
| entity.name.type.inherited | #ad7fa8 | |
| invalid | #ef2929 | |
| invalid.deprecated | #ef2929 | — |
| meta.diff, meta.diff.header | #babdb6 | italic |
| markup.deleted | #a40000 | |
| markup.changed | #f57900 | |
| markup.inserted | #8ae234 | — |
| markup.quote | #729fcf | — |
| markup.bold, markup.italic | #729fcf | — |
| markup.inline.raw | #c4a000 | |
| markup.heading.setext | #edd400 |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}