macro11-syntax-vscode
Publisher: Nikita ZiminThemes in package: 1
MACRO11 syntax highlighling for VSCode
MACRO11 syntax highlighling for VSCode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment | #6A9955 | — |
| entity.name.label.global | #80c0d0 | bold |
| entity.name.label | #60c0d0 | — |
| entity.name.directive | #b060b0 | — |
| entity.name.parameters | #a0a0a0 | — |
| entity.name.parameter | #9080a0 | — |
| keyword.control.macro11 | #7dc0a8 | bold |
| keyword.operator.macro11 | #a0a080 | — |
| keyword.assembly.instruction | #a0a060 | — |
| entity.other.string | #a0a0a0 | — |
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}!`;
}