Pine Script VS Code
Publisher: Kai GouthroThemes in package: 20
Pine Script Language Server
Pine Script Language Server
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.line | #617ca3 | italic |
| comment.block | #617ca3 | italic |
| comment.block.documentation | #92949E | italic |
| constant.numeric | #d19971 | — |
| constant.numeric.integer | #d19971 | — |
| constant.numeric.float | #d19971 | — |
| constant.numeric.hex | #d19971 | — |
| constant.numeric.binary | #d19971 | — |
| constant.language | #c08888 | italic |
| constant.language.boolean | #c08888 | italic |
| constant.language.null | #c08888 | italic |
| constant.other | #617ca3 | — |
| constant.character | #ffb882 | — |
| constant.character.escape | #ffb882 | — |
| entity.name.class | #d5bc88 | — |
| entity.name.function | #82A3BF | — |
| entity.name.function.declaration | #82A3BF | — |
| entity.name.function.call | #82A3BF | — |
| entity.name.type | #6eafa4 | — |
| entity.name.variable | #b99067 | — |
| entity.name.constant | #617ca3 | — |
| entity.other.attribute-name | #abbad3 | italic |
| entity.other.attribute-name.id | #af7575 | — |
| entity.other.attribute-name.class | #af7575 | — |
| entity.other.inherited-class | #d5bc88 | — |
| keyword.control | #B295BB | — |
| keyword.control.conditional | #B294BB | — |
| keyword.control.loop | #B294BB | — |
| keyword.control.exception | #B294BB | — |
| keyword.control.import | #B294BB | — |
| keyword.control.export | #B294BB | — |
| keyword.operator | #7bcbbd | — |
| keyword.operator.assignment | #8ABEB7 | — |
| keyword.operator.arithmetic | #8ABEB7 | — |
| keyword.operator.logical | #72b4a9 | — |
| keyword.operator.comparison | #8ABEB7 | — |
| keyword.operator.bitwise | #8ABEB7 | — |
| keyword.operator.ternary | #8ABEB7 | — |
| keyword.operator.increment | #8ABEB7 | — |
| keyword.operator.decrement | #8ABEB7 | — |
| keyword.other | #6eafa4 | — |
| keyword.other.unit | #d19971 | — |
| keyword.type | #6eafa4 | — |
| storage.type | #B295BB | — |
| storage.modifier | #b99067 | — |
| string.quoted.double | #FFD278 | — |
| string.quoted.single | #d5bc88 | — |
| string.quoted.template | #FFD278 | — |
| string.unquoted | #FFD278 | — |
| string.interpolated | #FFD278 | — |
| string.regexp | #FFD278 | — |
| punctuation.definition.string.begin | #C8CEC9 | — |
| punctuation.definition.string.end | #C8CEC9 | — |
| punctuation.definition.string.template.begin | #C8CEC9 | — |
| punctuation.definition.string.template.end | #C8CEC9 | — |
| punctuation.separator | #C8CEC9 | — |
| punctuation.accessor | #8ABEB7 | — |
| punctuation.bracket | #C8CEC9 | — |
| punctuation.bracket.round | #C8CEC9 | — |
| punctuation.bracket.square | #C8CEC9 | — |
| punctuation.bracket.curly | #C8CEC9 | — |
| punctuation.terminator | #C8CEC9 | — |
| markup.bold | #E9B36D | bold |
| markup.italic | #E9B36D | italic |
| markup.underline | #E9B36D | underline |
| markup.strikethrough | #E9B36D | strikethrough |
| markup.quote | #ffd280 | — |
| markup.heading.1 | #CC6666 | bold |
| markup.heading.2 | #CC6666 | bold |
| markup.heading.3 | #CC6666 | bold |
| markup.heading.4 | #CC6666 | — |
| markup.heading.5 | #CC6666 | — |
| markup.heading.6 | #CC6666 | — |
| markup.list.numbered | #B2B4B2 | — |
| markup.list.bullet | #B2B4B2 | — |
| markup.code | #C8CEC9 | — |
| markup.raw | #C8CEC9 | — |
| markup.link | #82A3BF | — |
| markup.link.url | #82A3BF | — |
| markup.link.reference | #82A3BF | — |
| meta.block | #888A88 | — |
| meta.block.scope | #888A88 | — |
| meta.function | #92B3CF | — |
| meta.function.declaration | #92B3CF | — |
| meta.function.parameters | #A2C3DF | — |
| meta.function-call | #92B3CF | — |
| meta.class | #86CFA4 | — |
| meta.class.declaration | #86CFA4 | — |
| meta.interface | #86CFA4 | — |
| meta.interface.declaration | #86CFA4 | — |
| meta.module | #92B3CF | — |
| meta.module.declaration | #92B3CF | — |
| meta.import | #C2A5CB | — |
| meta.export | #C2A5CB | — |
| meta.require | #B2B4B2 | — |
| meta.annotation | #7896c9 | — |
| meta.decorator | #7896c9 | — |
| meta.directive | #B295BB | — |
| variable.parameter | #b3e6e4 | — |
| variable.language | #b99067 | — |
| variable.language.this | #b99067 | — |
| variable.language.self | #b99067 | — |
| variable.other | #b99067 | — |
| variable.other.readwrite | #b99067 | — |
| variable.other.constant | #82A3BF | bold |
| variable.other.global | #b99067 | — |
| support.class | #d5bc88 | — |
| support.function | #82A3BF | — |
| support.constant | #d0aa8d | — |
| support.type | #6eafa4 | — |
| support.module | #82A3BF | — |
| invalid.illegal | #F4878A | — |
| invalid.deprecated | #F4878A | italic |
| token.error-token | #F4878A | — |
| token.warn-token | #FFD278 | — |
| token.info-token | #71A1D0 | — |
| token.debug-token | #82A3BF | — |
| constant.color.aqua | #00BCD4 | — |
| constant.color.black | #363A45 | — |
| constant.color.blue | #7260d9 | — |
| constant.color.fuchsia | #E040FB | — |
| constant.color.gray | #7A7D88 | — |
| constant.color.green | #4CAF50 | — |
| constant.color.lime | #00E676 | — |
| constant.color.maroon | #880E4F | — |
| constant.color.navy | #9582ea | — |
| constant.color.olive | #808000 | — |
| constant.color.orange | #FF9800 | — |
| constant.color.purple | #9C27B0 | — |
| constant.color.red | #FF5252 | — |
| constant.color.silver | #B2B5BE | — |
| constant.color.teal | #4eb9ad | — |
| constant.color.white | #FFFFFF | — |
| constant.color.yellow | #dfd577 | — |
| markup.changed.diff | #A5D2A5 | — |
| markup.deleted.diff | #F4878A | — |
| markup.inserted.diff | #A5D2A5 | — |
| meta.diff.header | #C8CEC9 | bold |
| variable.other.diff | #b99067 | — |
| entity.name | #eaeaea | — |
| markup.ignored | #7896c9 | — |
| markup.untracked | #7896c9 | — |
| markup.raw.block | #C8CEC9 | — |
| markup.inline.raw | #C8CEC9 | — |
| markup.paragraph | #B2B4B2 | — |
| meta.paragraph.list.numbered | #B2B4B2 | — |
| meta.paragraph.blockquote | #BEC1BE | italic |
| meta.block-level | #BEC1BE | italic |
| comment | #9799A3 | italic |
| punctuation.definition.comment | #617ca3 | — |
| punctuation.definition.bold | #E9B36D | — |
| punctuation.definition.italic | #E9B36D | — |
| punctuation.definition.underline | #E9B36D | — |
| punctuation.definition.strikethrough | #E9B36D | — |
| punctuation.definition.quote | #ffd280 | — |
| punctuation.definition.heading | #CC6666 | — |
| punctuation.definition.list | #B2B4B2 | — |
| punctuation.definition.code | #C8CEC9 | — |
| punctuation.definition.raw | #C8CEC9 | — |
| punctuation.definition.link | #82A3BF | — |
| punctuation.separator.key-value | #C8CEC9 | — |
| punctuation.separator.parameter | #C8CEC9 | — |
| punctuation.separator.element | #C8CEC9 | — |
| punctuation.separator.object | #C8CEC9 | — |
| punctuation.separator.array | #C8CEC9 | — |
| punctuation.section.block | #C8CEC9 | — |
| punctuation.section.group | #C8CEC9 | — |
| punctuation.section.braces | #C8CEC9 | — |
| punctuation.section.brackets | #C8CEC9 | — |
| punctuation.section.parens | #C8CEC9 | — |
| entity.name.module | #82A3BF | — |
| entity.name.namespace | #82A3BF | — |
| entity.name.enum | #82A3BF | — |
| entity.name.interface | #82A3BF | — |
| entity.name.decorator | #7896c9 | — |
| entity.name.annotation | #7896c9 | — |
| variable.other.property | #b99067 | — |
| variable.other.object | #b99067 | — |
| variable.other.member | #b99067 | — |
| variable.other.instance | #b99067 | — |
| variable.other.readwrite.instance | #b99067 | — |
| variable.other.constant.instance | #82A3BF | bold |
| variable.language.constructor | #b99067 | — |
| variable.language.super | #b99067 | — |
| keyword.operator.new | #7bcbbd | — |
| keyword.operator.delete | #7bcbbd | — |
| keyword.operator.typeof | #7bcbbd | — |
| keyword.operator.instanceof | #7bcbbd | — |
| keyword.operator.void | #7bcbbd | — |
| keyword.operator.expression | #7bcbbd | — |
| keyword.operator.control.flow | #B294BB | — |
| keyword.operator.control.exception | #B294BB | — |
| keyword.operator.control.loop | #B294BB | — |
| keyword.operator.control.conditional | #B294BB | — |
| keyword.operator.control.import | #B294BB | — |
| keyword.operator.control.export | #B294BB | — |
| keyword.operator.control.directive | #B295BB | — |
| keyword.operator.control.module | #B295BB | — |
| keyword.operator.control.class | #B295BB | — |
| keyword.operator.control.interface | #B295BB | — |
| entity.name.function.method | #82A3BF | — |
| entity.name.function.constructor | #82A3BF | — |
| entity.name.function.setter | #82A3BF | — |
| entity.name.function.getter | #82A3BF | — |
| entity.name.type.class | #6eafa4 | — |
| entity.name.type.interface | #6eafa4 | — |
| entity.name.type.enum | #6eafa4 | — |
| entity.name.type.module | #6eafa4 | — |
| entity.name.type.namespace | #6eafa4 | — |
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}!`;
}