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, storage.modifier.reference, storage.modifier.pointer | #DDDDDD | |
| emphasis | #AAAA00 | |
| comment.block, punctuation.definition.comment.block | #559955 | |
| comment.line, punctuation.definition.comment.line | #669955 | |
| constant.numeric, keyword.other.unit | #88AACC | |
| constant.numeric.hexadecimal, keyword.other.unit.hexadecimal | #66AAAA | |
| keyword.other.unit.suffix | #AA9988 | |
| keyword.control, keyword.other.typedef | #0099FF | bold |
| keyword.control.directive | #888888 | |
| entity.name.function | #EEEE99 | |
| entity.name.function.preprocessor | #CC88FF | |
| entity.name.type, support.type.posix-reserved | #00AAAA | bold |
| storage.modifier | #CCCC00 | |
| storage.type, keyword.operator.sizeof | #0099FF | |
| variable | #DDDDDD | |
| variable.parameter | #AAAAAA | |
| variable.other.local | #99CCFF | |
| variable.other.global | #EEEEEE | bold |
| variable.other.property, variable.other.object.property | #EEAA00 | |
| variable.other.enummember | #CC88FF | italic |
| string.quoted.double, string.quoted.other.lt-gt.include | #EE9966 | |
| 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 | #0099FF | |
| entity.name.function.definition.special.constructor | #008888 | bold |
| entity.name.function.member | #00CC99 | |
| entity.name.function.member.static | #00CC99 | bold |
| entity.name.function.operator.member, keyword.other.operator.overload, entity.name.operator.type | #00CC99 | 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 | #0099FF | bold |
| keyword.other.typename, storage.type.template.argument.typename, keyword.other.concept, keyword.other.requires | #CCCC00 | |
| keyword.other.using.directive | #888888 | |
| source.arm | #FFFFFF | bold |
| variable.named.arm | #0099FF | bold |
| comment.arm | #669955 | |
| support.function.mnemonic.memory.arm | #EEEE99 | |
| support.function.mnemonic.arithmetic.arm | #EEAA00 | |
| invalid.illegal.condition.arm | #0099FF | |
| comment.nop.arm | #FFFFFF | |
| storage.register.arm | #99CCFF | bold |
| storage.stack.arm | #99CCFF | |
| entity.name.function.target.makefile | #00CC99 | bold |
| punctuation.separator.key-value.makefile | #FFFFFF | bold |
| variable.other.makefile | #99CCFF | bold |
| meta.scope.condition.makefile | #AAAAAA | bold |
| punctuation.definition.variable.makefile | #CCCC00 | bold |
| markup.heading.markdown | #99CCFF | bold |
| meta.image.inline.markdown | #00CC99 | 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}!`;
}