Jacy lang
Publisher: Jacy-LangThemes in package: 1
Syntax highlighting for Jacy programming language
Syntax highlighting for Jacy programming language
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 | #6C809AAA | italic |
| string, constant.other.symbol | #F7D08A | — |
| constant.numeric | #3A0CA3 | — |
| constant.language | #3A0CA3 | — |
| variable, variable.parameter.function-call | #6C698D | — |
| variable.member | #F7D08A | — |
| variable.language | #6C698D | italic |
| storage | #F7D08A | — |
| keyword | #E76D83 | — |
| keyword.operator | #E76D83 | — |
| punctuation.separator, punctuation.terminator | #6C698D8A | — |
| punctuation.section | #6C698DCA | — |
| punctuation.accessor | #8AE9C1AA | — |
| storage.type.function | #F7D08A | — |
| entity.name.function | #81F495 | — |
| variable.parameter, meta.parameter | #6C698D | — |
| variable.function, variable.annotation, meta.function-call.generic, support.function.go | #81F495 | — |
| support.function, support.macro | #E76D83 | — |
| entity.name.import, entity.name.package | #8AE9C1 | — |
| entity.name | #E76D83 | — |
| entity.name.tag, meta.tag.sgml | #6153CC | — |
| support.constant | #E76D83 | italic |
| support.type, support.class, source.go storage.type | #8AE9C1 | — |
| meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation | #E6B673 | — |
| invalid | #F03E3E | — |
| meta.diff, meta.diff.header | #C594C5 | — |
| constant.numeric.line-number.find-in-files - match | #ACB6BF8C | — |
| constant.numeric.line-number.match | #FF8F40 | — |
| entity.name.filename.find-in-files | #AAD94C | — |
| message.error | #F03E3E | — |
| markup.heading, markup.heading entity.name | #AAD94C | bold |
| markup.underline.link, string.other.link | #39BAE6 | — |
| markup.italic | #F07178 | italic |
| markup.bold | #F07178 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.raw | — | — |
| markup.raw.inline | — | — |
| meta.separator | #ACB6BF8C | bold |
| markup.quote | #95E6CB | italic |
| markup.list punctuation.definition.list.begin | #FFB454 | — |
| markup.inserted | #7FD962 | — |
| markup.changed | #73B8FF | — |
| markup.deleted | #610345 | — |
| markup.strike | #E6B673 | — |
| markup.table | #39BAE6 | — |
| text.html.markdown markup.inline.raw | #F29668 | — |
| text.html.markdown meta.dummy.line-break | #ACB6BF8C | — |
| punctuation.definition.markdown | #ACB6BF8C | — |
| comment | #202C39 | — |
| punctuation.definition.comment | #202C39 | — |
| string | #F7D08A | — |
| meta.embedded.assembly | #F7D08A | — |
| keyword - keyword.operator | #E76D83 | — |
| keyword.control | #E76D83 | — |
| storage | #E76D83 | — |
| storage.type | #E76D83 | — |
| constant.numeric | #D696D6 | — |
| entity.name.type | #A2AFEB | — |
| entity.name.class | #A2AFEB | — |
| support.type | #A2AFEB | — |
| support.class | #A2AFEB | — |
| entity.name.function | #81F495 | — |
| support.function | #81F495 | — |
| variable | #D1C2C2 | — |
| entity.name.variable | #D1C2C2 | — |
| keyword | #E76D83 | — |
| keyword.operator | #D15E73 | — |
| support.function.label | #D15E73 | — |
| punctuation.separator.label-colon | #B0C4AB | bold |
| punctuation.separator | #B0C4AB | — |
| punctuation | #ADCCCC | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| comment | #7A8080AA | — |
| punctuation.definition.comment | #7A8080AA | — |
| string | #F7D08A | — |
| meta.embedded.assembly | #F7D08A | — |
| keyword - keyword.operator | #E76D83 | — |
| keyword.control | #E76D83 | — |
| storage | #E76D83 | — |
| storage.type | #E76D83 | — |
| constant.numeric | #D696D6 | — |
| entity.name.type | #A2AFEB | — |
| entity.name.class | #A2AFEB | — |
| support.type | #A2AFEB | — |
| support.class | #A2AFEB | — |
| entity.name.function | #81F495 | — |
| support.function | #81F495 | — |
| variable | #D1C2C2 | — |
| entity.name.variable | #D1C2C2 | — |
| keyword | #E76D83 | — |
| keyword.operator | #D15E73 | — |
| support.function.label | #D15E73 | — |
| punctuation.separator.label-colon | #B0C4AB | bold |
| punctuation.separator | #B0C4AB | — |
| punctuation | #ADCCCC | — |
| comment | #7A8080AA | — |
| punctuation.definition.comment | #7A8080AA | — |
| string | #F7D08A | — |
| meta.embedded.assembly | #F7D08A | — |
| keyword - keyword.operator | #E76D83 | — |
| keyword.control | #E76D83 | — |
| storage | #E76D83 | — |
| storage.type | #E76D83 | — |
| constant.numeric | #D696D6 | — |
| entity.name.type | #A2AFEB | — |
| entity.name.class | #A2AFEB | — |
| support.type | #A2AFEB | — |
| support.class | #A2AFEB | — |
| entity.name.function | #81F495 | — |
| support.function | #81F495 | — |
| variable | #D1C2C2 | — |
| entity.name.variable | #D1C2C2 | — |
| keyword | #E76D83 | — |
| keyword.operator | #D15E73 | — |
| support.function.label | #D15E73 | — |
| punctuation.separator.label-colon | #B0C4AB | bold |
| punctuation.separator | #B0C4AB | — |
| punctuation | #ADCCCC | — |
| comment | #7A8080AA | — |
| punctuation.definition.comment | #7A8080AA | — |
| string | #F7D08A | — |
| meta.embedded.assembly | #F7D08A | — |
| keyword - keyword.operator | #E76D83 | — |
| keyword.control | #E76D83 | — |
| storage | #E76D83 | — |
| storage.type | #E76D83 | — |
| constant.numeric | #D696D6 | — |
| entity.name.type | #A2AFEB | — |
| entity.name.class | #A2AFEB | — |
| support.type | #A2AFEB | — |
| support.class | #A2AFEB | — |
| entity.name.function | #81F495 | — |
| support.function | #81F495 | — |
| variable | #D1C2C2 | — |
| entity.name.variable | #D1C2C2 | — |
| keyword | #E76D83 | — |
| keyword.operator | #D15E73 | — |
| support.function.label | #D15E73 | — |
| punctuation.separator.label-colon | #B0C4AB | bold |
| punctuation.separator | #B0C4AB | — |
| punctuation | #ADCCCC | — |
| comment | #7A8080AA | — |
| punctuation.definition.comment | #7A8080AA | — |
| string | #F7D08A | — |
| meta.embedded.assembly | #F7D08A | — |
| keyword - keyword.operator | #E76D83 | — |
| keyword.control | #E76D83 | — |
| storage | #E76D83 | — |
| storage.type | #E76D83 | — |
| constant.numeric | #D696D6 | — |
| entity.name.type | #A2AFEB | — |
| entity.name.class | #A2AFEB | — |
| support.type | #A2AFEB | — |
| support.class | #A2AFEB | — |
| entity.name.function | #81F495 | — |
| support.function | #81F495 | — |
| variable | #D1C2C2 | — |
| entity.name.variable | #D1C2C2 | — |
| keyword | #E76D83 | — |
| keyword.operator | #D15E73 | — |
| support.function.label | #D15E73 | — |
| punctuation.separator.label-colon | #B0C4AB | bold |
| punctuation.separator | #B0C4AB | — |
| punctuation | #ADCCCC | — |
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}!`;
}