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 | #8A94A3 | italic |
| comment.block.address.sass, punctuation.definition.comment.address.sass | #A8B0BE | |
| comment.block.control-word.sass | #BCC3CE | — |
| comment.other.reuse-hint.sass | #8A9E7E | italic |
| comment.line.banner.sass | #A8B0BE | — |
| comment.line.double-slash.source-correlation.sass | #6E7F8F | italic |
| keyword.other.opcode.sass | #0000FF | bold |
| storage.modifier.postfix.tier1.sass | #4A5F8C | — |
| storage.modifier.postfix.tier2.sass | #6B7C9E | — |
| storage.modifier.postfix.tier3.sass | #8B98AE | — |
| storage.modifier.operand.sass | #6B7C9E | — |
| keyword.control.guard.sass, keyword.control.guard.predicate.sass, keyword.operator.logical.not.guard.sass | #A5122A | bold |
| variable.other.register.vector.sass | #B06A05 | — |
| variable.other.register.vector.zero.sass | #A08A5E | — |
| variable.other.register.predicate.sass, variable.language.register.predicate-file.sass | #C6293A | — |
| variable.other.register.predicate.true.sass | #B8757C | — |
| variable.other.register.uniform.sass | #0A7C93 | — |
| variable.other.register.uniform.zero.sass | #5E97A2 | — |
| variable.other.register.uniform-predicate.sass | #7546C4 | — |
| variable.other.register.uniform-predicate.true.sass | #9E86C4 | — |
| variable.language.register.special.sass | #0B7A5E | — |
| variable.language.register.special.zero.sass | #5E9A88 | — |
| variable.other.register.barrier.sass | #9A5A28 | — |
| variable.other.register.scoreboard.sass | #8A5024 | — |
| variable.other.constant-bank.sass, variable.other.descriptor.sass | #1250C4 | — |
| variable.other.constant-bank.indexed.sass | #1250C4 | bold |
| variable.other.constant-bank.bank.sass, variable.other.constant-bank.offset.sass | #2F6BD8 | — |
| variable.other.attribute-space.sass | #0F8078 | — |
| variable.other.attribute-space.offset.sass | #2A968F | — |
| constant.numeric.hex.sass, constant.numeric.float.sass, constant.numeric.integer.sass | #3F7A1F | — |
| constant.numeric.special.sass | #3F7A1F | bold |
| entity.name.label.sass | #8A6100 | bold |
| entity.name.label.reference.sass | #8A6100 | — |
| entity.name.function.sass, entity.name.function.section.sass | #0E7A74 | bold |
| entity.name.function.reference.sass | #0E7A74 | — |
| keyword.other.directive.sass, keyword.other.function-header.sass, keyword.operator.directive-value.sass | #5A6478 | bold |
| entity.name.tag.directive-operand.sass | #6B7488 | — |
| constant.language.elf-flag.sass, keyword.other.relocation.sass | #6A5A94 | — |
| constant.language.arch.sass | #7546C4 | bold |
| string.quoted.double.sass, string.quoted.double.filename.sass, punctuation.definition.string.begin.sass, punctuation.definition.string.end.sass | #3F7A46 | — |
| keyword.operator.absolute-value.sass, keyword.operator.arithmetic.negate.sass, keyword.operator.logical.not.sass, keyword.operator.bitwise.not.sass | #1F2733 | bold |
| keyword.operator.arithmetic.sass | #6B7488 | — |
| 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 | #7A8496 | — |
| punctuation.terminator.instruction.sass | #A8B0BE | — |
| punctuation.accessor.sass | #8B98AE | — |
| constant.other.control-code.stall.sass | #B06A05 | bold |
| constant.other.control-code.yield.sass | #4F7A2A | — |
| constant.other.control-code.write-barrier.sass | #C6293A | — |
| constant.other.control-code.read-barrier.sass | #0A7C93 | — |
| constant.other.control-code.wait-barrier.sass | #7546C4 | — |
| punctuation.separator.control-code.sass | #A8B0BE | — |
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}!`;
}