24's Stellaris YAML Syntax
Publisher: The24thDSThemes in package: 3
Syntax highlighting and color themes for Stellaris localisation files.
Syntax highlighting and color themes for Stellaris localisation files.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| variable.language.multi_scopes.paradox | #DA70D6 | — |
| constant.prefdef.paradox | #BBEEFF | — |
| variable.language.condition_scopes.paradox | #9CCB19 | — |
| variable.language.command_scopes.paradox | #8A2BE2 | — |
| variable.language.other.paradox | #00BFFF | — |
| variable.language.conditions.paradox | #9CCB19 | — |
| variable.language.effects.paradox | #FF8300 | — |
| constant.numeric.paradox | #1F8206 | — |
| variable.boolean.paradox | #EE4000 | — |
| variable.lhs.paradox, rest.normal.paradox | #AAFFAA | — |
| variable.lhs.bracket.paradox | #0060EE | — |
| constant.rhs.paradox, constant.language.paradox | #00B200 | — |
| variable.language.definition_tokens.paradox | #569CD6 | — |
| variable.language.modifiers.paradox | #008000 | — |
| source.mod | #FFFFFF | — |
| string.quoted.double.paradox | #D51232 | — |
| comment.line.number-sign.paradox | #A5ABAF | — |
| string.quoted.double.yaml | #D9D9D9 | — |
| bracket-command.stellaris.yml, loc-key.stellaris.yml | — | underline bold |
| keyword.icon-code.stellaris.yml | #C0B235 | underline italic |
| keyword.color-code.w.stellaris.yml | #DCDCDC | bold |
| keyword.color-code.t.stellaris.yml | #D9D9D9 | bold |
| keyword.color-code.lowercase_g.stellaris.yml | #6D6D6D | bold |
| keyword.color-code.l.stellaris.yml | #9E8F75 | bold |
| keyword.color-code.p.stellaris.yml | #BF5E5E | bold |
| keyword.color-code.r.stellaris.yml | #D2483B | bold |
| keyword.color-code.s.stellaris.yml | #B07921 | bold |
| keyword.color-code.h.stellaris.yml | #D69123 | bold |
| keyword.color-code.y.stellaris.yml | #D2D62C | bold |
| keyword.color-code.g.stellaris.yml | #23BF20 | bold |
| keyword.color-code.v.stellaris.yml | #417560 | bold |
| keyword.color-code.e.stellaris.yml | #73D9B0 | bold |
| keyword.color-code.c.stellaris.yml | #1CC5B1 | bold |
| keyword.color-code.b.stellaris.yml | #2B8ED9 | bold |
| keyword.color-code.m.stellaris.yml | #8B2DCB | bold |
| keyword.color-code._.stellaris.yml | #D900D9 | bold |
| keyword.color-code.lowercase_c.stellaris.yml | #33B17C | bold |
| keyword.color-code.lowercase_v.stellaris.yml | #76948A | bold |
| keyword.color-code.lowercase_d.stellaris.yml | #D9BC68 | bold |
| keyword.color-code.lowercase_r.stellaris.yml | #8B6FD9 | bold |
| keyword.color-code.lowercase_l.stellaris.yml | #97C959 | bold |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| entity.name.tag.yaml, entity.name.tag.stellaris.yaml | #c59224 | — |
| comment.line.number-sign.yaml | #659663 | — |
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}!`;
}