Assembler code syntax and highlight
Publisher: Toeffe3Themes in package: 1
Supports VASM oldstyle, 6502 architecture
Supports VASM oldstyle, 6502 architecture
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | — | |
| source.asm | — | — |
| error | #FF0000 | italic |
| invalid.illegal | #FF0000 | italic underline |
| comment | #546E7A | italic |
| entity.name.label | #4ac6ff | italic underline |
| entity.name.variable, variable.name | #4ac6ff | — |
| — | — | |
| meta.preprocessor | #7dffa8 | bold |
| entity.name.section | #7dffa8 | |
| keyword.control | #cc00ff | bold italic |
| keyword.other | #ff00dd | italic |
| storage.modifier | #a3a000 | italic |
| constant | #f0ec00 | — |
| constant.other.address | #ffae00 | underline |
| support.function | #cc00ff | bold italic |
| string.quoted | #00a71c | — |
| string.path | #fd73d4 | underline |
| source.asm.preprocessor.parameter, source.asm.preprocessor.section, meta.preprocessor.parameter | #89fad8 | bold |
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}!`;
}