Theme 0x9DEFA478
Publisher: 0x9DEFA478Themes in package: 2
一个颜色主题,为C/C++提供语法高亮,最大限度的为每一种类型的关键词设置了不同的颜色,其他语言未作测试
一个颜色主题,为C/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 |
|---|---|---|
| source | #000000 | |
| emphasis | #AAAA00 | |
| comment.block, punctuation.definition.comment.block | #009900 | |
| comment.line, punctuation.definition.comment.line | #00AA00 | |
| constant.numeric, keyword.other.unit | #00AAAA | |
| constant.numeric.hexadecimal, keyword.other.unit.hexadecimal | #0099FF | |
| keyword.other.unit.suffix | #0000FF | |
| keyword.control, keyword.other.typedef | #0000FF | bold |
| keyword.control.directive | #AAAAAA | |
| entity.name.function | #884400 | |
| entity.name.function.preprocessor | #9922FF | |
| entity.name.type, support.type.posix-reserved | #008888 | bold |
| storage.modifier | #888800 | |
| storage.type, keyword.operator.sizeof | #0000FF | |
| variable | #000000 | |
| variable.parameter | #888888 | |
| variable.other.local | #000000 | |
| variable.other.global | #000000 | bold |
| variable.other.property, variable.other.object.property | #CC6700 | |
| variable.other.enummember | #9922FF | italic |
| string.quoted.double, string.quoted.other.lt-gt.include | #CC1111 | |
| string.quoted.single | #FF00CC | |
| constant.character.escape | #FF00CC | underline |
| entity.name.namespace | #AAAAAA | bold |
| keyword.other.static_assert, keyword.operator.noexcept, keyword.operator.cast, keyword.operator.alignof.cpp | #0000FF | |
| entity.name.function.definition.special.constructor | #008888 | bold |
| entity.name.function.member | #0099CC | |
| entity.name.function.member.static | #0099CC | bold |
| entity.name.function.operator.member, keyword.other.operator.overload, entity.name.operator.type | #0099CC | bold |
| keyword.operator.new, keyword.operator.delete, keyword.other.delete, variable.language.this, constant.language.nullptr, constant.language.true, constant.language.false, keyword.other.default.function, keyword.other.default.constructor | #0000FF | bold |
| keyword.other.typename, storage.type.template.argument.typename, keyword.other.concept, keyword.other.requires | #888800 | |
| keyword.other.using.directive | #AAAAAA | |
| source.arm | #000000 | bold |
| variable.named.arm | #0000FF | bold |
| comment.arm | #00AA00 | |
| support.function.mnemonic.memory.arm | #884400 | |
| support.function.mnemonic.arithmetic.arm | #FF0000 | |
| invalid.illegal.condition.arm | #0000FF | |
| comment.nop.arm | #000000 | |
| storage.register.arm | #9922FF | bold |
| storage.stack.arm | #9922FF | |
| entity.name.function.target.makefile | #9922FF | bold |
| punctuation.separator.key-value.makefile | #FF0000 | bold |
| variable.other.makefile | #000000 | bold |
| meta.scope.condition.makefile | #888888 | bold |
| punctuation.definition.variable.makefile | #CCCC00 | bold |
| markup.heading.markdown | #000000 | bold |
| meta.image.inline.markdown | #FF00CC | underline |
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}!`;
}