Arma SQF Language
Publisher: blackfischThemes in package: 1
Full SQF Language support for VS Code. Forked and updated from https://github.com/Armitxes/VSCode_SQF
Full SQF Language support for VS Code. Forked and updated from https://github.com/Armitxes/VSCode_SQF
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #ececec | — |
| variable.other | #7D9EC0 | — |
| variable.other.private | #647e99 | — |
| constant.language.boolean | #A6D996 | — |
| entity.name.function, storage.type.property, meta.function-call | #47A9FF | — |
| support.function | #20D6D6 | — |
| keyword.operator | #525252 | — |
| keyword.control | #C72828 | — |
| variable.language, storage.modifier | #FF9D00 | — |
| comment | #5AA641 | — |
| constant.numeric | #91C77F | — |
| string | #D97E5F | — |
| meta.function-call | #AB58C4 | — |
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}!`;
}