NVIDIA SASS
Publisher: Gabor ValasekThemes in package: 2
Syntax highlighting and tooltips for NVIDIA SASS disassembly (nvdisasm, cuobjdump -sass, Nsight export).
Syntax highlighting and tooltips for NVIDIA SASS disassembly (nvdisasm, cuobjdump -sass, Nsight export).
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, comment.line.double-slash.sass, comment.block.sass, punctuation.definition.comment.sass | #5A6472 | italic |
| comment.block.address.sass, punctuation.definition.comment.address.sass | #465061 | |
| comment.block.control-word.sass | #3D4553 | — |
| comment.other.reuse-hint.sass | #5F7355 | italic |
| comment.line.banner.sass | #4E5867 | — |
| comment.line.double-slash.source-correlation.sass | #6E7F8F | italic |
| keyword.other.opcode.sass | #DCE7FF | bold |
| storage.modifier.postfix.tier1.sass | #9DB0D8 | — |
| storage.modifier.postfix.tier2.sass | #7386AE | — |
| storage.modifier.postfix.tier3.sass | #5A6A8C | — |
| storage.modifier.operand.sass | #7386AE | — |
| keyword.control.guard.sass, keyword.control.guard.predicate.sass, keyword.operator.logical.not.guard.sass | #FF8A93 | bold |
| variable.other.register.vector.sass | #E8A33D | — |
| variable.other.register.vector.zero.sass | #96793F | — |
| variable.other.register.predicate.sass, variable.language.register.predicate-file.sass | #F07178 | — |
| variable.other.register.predicate.true.sass | #9E585C | — |
| variable.other.register.uniform.sass | #4FC1D9 | — |
| variable.other.register.uniform.zero.sass | #3E8695 | — |
| variable.other.register.uniform-predicate.sass | #B48EEA | — |
| variable.other.register.uniform-predicate.true.sass | #77609C | — |
| variable.language.register.special.sass | #57C7A8 | — |
| variable.language.register.special.zero.sass | #3E8875 | — |
| variable.other.register.barrier.sass | #CC8B65 | — |
| variable.other.register.scoreboard.sass | #B57C5C | — |
| variable.other.constant-bank.sass, variable.other.descriptor.sass | #6A9BF4 | — |
| variable.other.constant-bank.indexed.sass | #6A9BF4 | bold |
| variable.other.constant-bank.bank.sass, variable.other.constant-bank.offset.sass | #8FB4F7 | — |
| variable.other.attribute-space.sass | #5EC8C0 | — |
| variable.other.attribute-space.offset.sass | #8ADAD4 | — |
| constant.numeric.hex.sass, constant.numeric.float.sass, constant.numeric.integer.sass | #C3E88D | — |
| constant.numeric.special.sass | #C3E88D | bold |
| entity.name.label.sass | #FFCB6B | bold |
| entity.name.label.reference.sass | #FFCB6B | — |
| entity.name.function.sass, entity.name.function.section.sass | #82D2CE | bold |
| entity.name.function.reference.sass | #82D2CE | — |
| keyword.other.directive.sass, keyword.other.function-header.sass, keyword.operator.directive-value.sass | #8892A8 | bold |
| entity.name.tag.directive-operand.sass | #7E8AA0 | — |
| constant.language.elf-flag.sass, keyword.other.relocation.sass | #9C8CBF | — |
| constant.language.arch.sass | #B48EEA | bold |
| string.quoted.double.sass, string.quoted.double.filename.sass, punctuation.definition.string.begin.sass, punctuation.definition.string.end.sass | #A8C6A0 | — |
| keyword.operator.absolute-value.sass, keyword.operator.arithmetic.negate.sass, keyword.operator.logical.not.sass, keyword.operator.bitwise.not.sass | #D8E1EC | bold |
| keyword.operator.arithmetic.sass | #77839A | — |
| punctuation.separator.operand.sass, punctuation.section.brackets.begin.sass, punctuation.section.brackets.end.sass, punctuation.section.parens.begin.sass, punctuation.section.parens.end.sass, punctuation.definition.symbol.sass, punctuation.separator.sass, punctuation.separator.label.sass | #69748A | — |
| punctuation.terminator.instruction.sass | #4E5867 | — |
| punctuation.accessor.sass | #5A6A8C | — |
| constant.other.control-code.stall.sass | #E8A33D | bold |
| constant.other.control-code.yield.sass | #A0C878 | — |
| constant.other.control-code.write-barrier.sass | #F07178 | — |
| constant.other.control-code.read-barrier.sass | #4FC1D9 | — |
| constant.other.control-code.wait-barrier.sass | #B48EEA | — |
| punctuation.separator.control-code.sass | #4E5867 | — |
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}!`;
}