Kolang (کلنگ)
Publisher: faralidevThemes in package: 2
پشتیبانی زبان برنامهنویسی کلنگ برای VS Code — RTL، برجستهسازی نحو، تکمیل خودکار و پوستهٔ فارسی
پشتیبانی زبان برنامهنویسی کلنگ برای VS Code — RTL، برجستهسازی نحو، تکمیل خودکار و پوستهٔ فارسی
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 |
|---|---|---|
| comment | #7f849c | italic |
| string | #a6e3a1 | — |
| constant.numeric | #fab387 | — |
| constant.language.boolean | #fab387 | bold |
| constant.language.null | #fab387 | — |
| keyword.control | #cba6f7 | bold |
| keyword.declaration | #f9e2af | bold |
| keyword.other | #89dceb | italic |
| keyword.operator.logical | #f38ba8 | — |
| keyword.operator.ezafe | #89b4fa | — |
| keyword.operator | #89b4fa | — |
| support.function.builtin | #a6e3a1 | — |
| entity.name.function | #89b4fa | — |
| entity.name.type, support.type | #94e2d5 | italic |
| support.class.exception | #f38ba8 | underline |
| entity.name.namespace | #74c7ec | italic |
| variable.language.this | #f38ba8 | italic |
| variable.other | #cdd6f4 | — |
| punctuation | #9399b2 | — |
| meta.decorator | #f5c2e7 | — |
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 |
|---|---|---|
| comment | #7c7f93 | italic |
| string | #40a02b | — |
| constant.numeric | #fe640b | — |
| constant.language.boolean | #fe640b | bold |
| constant.language.null | #fe640b | — |
| keyword.control | #8839ef | bold |
| keyword.declaration | #df8e1d | bold |
| keyword.other | #04a5e5 | italic |
| keyword.operator.logical | #d20f39 | — |
| keyword.operator.ezafe | #1e66f5 | — |
| keyword.operator | #1e66f5 | — |
| support.function.builtin | #40a02b | — |
| entity.name.function | #1e66f5 | — |
| entity.name.type, support.type | #179299 | italic |
| support.class.exception | #d20f39 | underline |
| entity.name.namespace | #209fb5 | italic |
| variable.language.this | #d20f39 | italic |
| variable.other | #4c4f69 | — |
| punctuation | #6c6f85 | — |
| meta.decorator | #ea76cb | — |
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}!`;
}