Pine Script v5
Publisher: FFriZzThemes in package: 17
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 |
|---|---|---|
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python | #D1D4DC | |
| punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison, support.variable.magic.python, variable.language.rust, support.constant.edge, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, markup.changed.diff, meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff, markup.deleted.diff, keyword.operator.expression.import, support.constant.math, support.constant.property.math, variable.other.constant, storage.type.annotation.java, storage.type.object.array.java, source.java, meta.method.java, meta.definition.variable.name.java, keyword.operator.logical, keyword.operator.channel, support.constant.property-value.scss,support.constant.property-value.css, keyword.operator.css,keyword.operator.scss,keyword.operator.less, support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss, support.constant.color.w3c-standard-color-name.css, support.type.vendored.property-name.css, support.module.node,support.type.object.module,support.module.node, support.type.object.console, support.variable.property.process | #1edbb5 | — |
| storage.type.haskell | #fdb603 | — |
| punctuation.separator.period,punctuation.separator.element,punctuation.parenthesis.begin,punctuation.parenthesis.end | #fdb603 | — |
| punctuation.separator.comma,punctuation.separator.key-value,punctuation.separator.statement,punctuation.separator.statement-terminator,punctuation.separator.continuation,punctuation.separator.namespace,punctuation.separator.type-parameters,punctuation.separator.type-parameters-list,punctuation.separator.type-arguments,punctuation.separator.type-arguments-list,punctuation.separator.type-annotation,punctuation.separator.type-annotation-punctuation | #fdb603 | — |
| variable.parameter.function.language.special.self.python | #fdb603 | |
| variable.parameter.function.language.special.cls.python | #58aefe | italic |
| storage.modifier.lifetime.rust | #dcdcdc | — |
| support.function.std.rust | #58aefe | — |
| entity.name.lifetime.rust | #fdb603 | — |
| variable.parameter.function | #dcdcdc | — |
| markup.inserted.diff | #F0E68C | — |
| meta.function.c,meta.function.cpp | #58aefe | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #dcdcdc | — |
| punctuation.separator.key-value | #dcdcdc | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java | #ff7259 | — |
| storage.modifier.import.java,storage.type.java,storage.type.generic.java | #fdb603 | — |
| keyword.operator.bitwise | #ff7259 | — |
| punctuation.separator.list.comma.css | #ff7259 | — |
| entity.name.type.module | #dcdcdc | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #dcdcdc | — |
| support.constant.json | #43BDB3 | — |
| entity.name.function,support.function.console | #58aefe | — |
| keyword.operator.misc.rust | #dcdcdc | — |
| support.type.object.dom | #dcdcdc | — |
| support.variable.dom,support.variable.property.dom | #dcdcdc | — |
| keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational | #1edbb5 | — |
| punctuation.separator.delimiter | #1edbb5 | — |
| support.type.posix-reserved.c,support.type.posix-reserved.cpp | #dcdcdc | — |
| variable.parameter.function.language.python | #dcdcdc | — |
| support.type.python | #dcdcdc | — |
| variable.parameter.function.python | #1edbb5 | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python | #1edbb5 | — |
| meta.function-call.generic.python | #58aefe | — |
| constant.character.format.placeholder.other.python | #1edbb5 | — |
| keyword.operator | #58aefe | — |
| keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts | #dcdcdc | — |
| keyword | #dcdcdc | — |
| entity.name.namespace | #58aefe | — |
| variable | #1edbb5 | — |
| variable.c | #1edbb5 | — |
| variable.language | #58aefe | — |
| token.variable.parameter.java | #dcdcdc | — |
| import.storage.java | #43BDB3 | — |
| token.package | #dcdcdc | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #58aefe | — |
| entity.name.type.namespace | #58aefe | — |
| variable.other.class.php | #1edbb5 | — |
| entity.name.type | #58aefe | — |
| control.elements, keyword.operator.less | #58aefe | — |
| keyword.other.special-method | #58aefe | — |
| token.storage.type.java | #58aefe | — |
| support.function | #58aefe | — |
| support.type.property-name | #1edbb5 | — |
| support.constant.property-value | #1edbb5 | — |
| support.constant.font-name | #1edbb5 | — |
| meta.tag | #58aefe | — |
| constant.other.symbol | #58aefe | — |
| constant.numeric | #fdb603 | — |
| constant | #1edbb5 | — |
| punctuation.definition.constant | #58aefe | — |
| entity.name.tag | #1edbb5 | — |
| entity.other.attribute-name | #1edbb5 | — |
| entity.other.attribute-name.id | #1edbb5 | italic |
| entity.other.attribute-name.class.css | #1edbb5 | italic |
| markup.heading | #1edbb5 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #1edbb5 | — |
| keyword.other.unit | #58aefe | — |
| markup,todo | #dcdcdc | — |
| entity.name.section.markdown | #1edbb5 | — |
| punctuation.definition.heading.markdown | #1edbb5 | — |
| punctuation.definition.list.begin.markdown | #1edbb5 | — |
| markup.heading.setext | #1edbb5 | — |
| punctuation.definition..markdown | #fdb603 | — |
| markup.inline.raw.markdown | #F0E68C | — |
| markup.inline.raw.string.markdown | #F0E68C | — |
| punctuation.definition.raw.markdown | #fdb603 | — |
| punctuation.definition.list.markdown | #fdb603 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #58aefe | — |
| beginning.punctuation.definition.list.markdown | #58aefe | — |
| punctuation.definition.metadata.markdown | #1edbb5 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #1edbb5 | — |
| markup.raw.monospace.asciidoc | #F0E68C | — |
| punctuation.definition.asciidoc | #fdb603 | — |
| markup.list.asciidoc | #fdb603 | — |
| string.unquoted.asciidoc,markup.other.url.asciidoc | #1edbb5 | — |
| string.regexp | #58aefe | — |
| punctuation.section.embedded, variable.interpolation | #58aefe | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | — | — |
| invalid.illegal | #fdb603 | — |
| invalid.illegal.bad-ampersand.html | #dcdcdc | — |
| invalid.broken | #fdb603 | — |
| invalid.deprecated | #58aefe | — |
| invalid.unimplemented | #fdb603 | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php | #fdb603 | — |
| punctuation.section.array.begin.php | #dcdcdc | — |
| punctuation.section.array.end.php | #dcdcdc | — |
| invalid.illegal.non-null-typehinted.php | #58aefe | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #fdb603 | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #58aefe | — |
| punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php | #dcdcdc | — |
| support.constant.core.rust | #fdb603 | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #fdb603 | — |
| entity.name.goto-label.php,support.other.php | #58aefe | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #fdb603 | — |
| keyword.operator.comparison.php | #fdb603 | — |
| meta.function.decorator.python | #58aefe | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #58aefe | — |
| function.brace | #dcdcdc | — |
| function.parameter.ruby, function.parameter.cs | #dcdcdc | — |
| constant.language.symbol.ruby | #58aefe | — |
| rgb-value | #fdb603 | — |
| inline-color-decoration rgb-value | #fdb603 | — |
| less rgb-value | #fdb603 | — |
| selector.sass | #dcdcdc | — |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #fdb603 | — |
| block.scope.end,block.scope.begin | #dcdcdc | — |
| storage.type.cs | #fdb603 | — |
| entity.name.variable.local.cs | #58aefe | — |
| token.info-token | #dcdcdc | — |
| token.warn-token | #fd0303 | — |
| token.error-token | #58aefe | — |
| meta.template.expression | #ff7259 | — |
| keyword.operator.module | — | — |
| support.type.type.flowtype | #ff7259 | — |
| support.type.primitive | #ff7259 | — |
| meta.property.object | #ffbb00 | — |
| variable.parameter.function.js | #58aefe | — |
| keyword.other.template.begin | #F0E68C | — |
| keyword.other.template.end | #F0E68C | — |
| keyword.other.substitution.begin | #F0E68C | — |
| keyword.other.substitution.end | #F0E68C | — |
| keyword.operator.assignment | #dcdcdc | — |
| keyword.operator.assignment.go | #1edbb5 | — |
| entity.name.package.go | #fdb603 | — |
| support.type.prelude.elm | #fdb603 | — |
| support.constant.elm | #fdb603 | — |
| constant.character.entity | #1edbb5 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #fdb603 | — |
| entity.global.clojure | #fdb603 | — |
| meta.symbol.clojure | #1edbb5 | — |
| constant.keyword.clojure | #fdb603 | — |
| meta.arguments.coffee, variable.parameter.function.coffee | #58aefe | — |
| source.ini | #F0E68C | — |
| meta.scope.prerequisites.makefile | #1edbb5 | — |
| source.makefile | #fdb603 | — |
| storage.modifier.import.groovy | #fdb603 | — |
| meta.method.groovy | #1edbb5 | — |
| meta.definition.variable.name.groovy | #1edbb5 | — |
| meta.definition.class.inherited.classes.groovy | #F0E68C | — |
| support.variable.semantic.hlsl | #fdb603 | — |
| text.variable, text.bracketed | #1edbb5 | — |
| support.type.swift, support.type.vb.asp | #fdb603 | — |
| entity.name.function.xi | #fdb603 | — |
| entity.name.class.xi | #fdb603 | — |
| constant.character.character-class.regexp.xi | #1edbb5 | — |
| keyword.control.xi | #fdb603 | — |
| invalid.xi | #dcdcdc | — |
| beginning.punctuation.definition.quote.markdown.xi | #F0E68C | — |
| beginning.punctuation.definition.list.markdown.xi | #58aefe | — |
| constant.character.xi | #1edbb5 | — |
| accent.xi | #1edbb5 | — |
| wikiword.xi | #fdb603 | — |
| constant.other.color.rgb-value.xi | #fdb603 | — |
| punctuation.definition.tag.xi | #58aefe | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #fdb603 | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #1edbb5 | — |
| meta.brace.square | #1edbb5 | — |
| punctuation.definition.block.sequence.item.yaml | #ff7259 | — |
| constant.language.symbol.elixir, constant.language.symbol.double-quoted.elixir | #fdb603 | — |
| entity.name.variable.parameter.cs | #1edbb5 | — |
| entity.name.variable.field.cs | #1edbb5 | — |
| markup.deleted | #1edbb5 | — |
| markup.inserted | #F0E68C | — |
| markup.underline | — | underline |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #1edbb5 | — |
| support.other.namespace.php | #1edbb5 | — |
| variable.other.object | #fdb603 | — |
| variable.other.constant.property | #1edbb5 | — |
| entity.other.inherited-class | #fdb603 | — |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super | — | italic |
| comment.line.double-slash,comment.block.documentation | — | italic |
| keyword.control.import.python,keyword.control.flow.python | #1edbb5 | italic |
| markup.italic.markdown | — | italic |
| constant.other.placeholder, constant.character | #1edbb5 | — |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language, entity | #dcdcdc | |
| entity.name, meta.export.default, meta.definition.variable | #ffb700 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #1edbb5 | — |
| entity.name.function | #dcbdfb | — |
| entity.name.tag, support.class.component | #1edbb5 | — |
| keyword | #dcdcdc | — |
| storage, storage.type | #1edbb5 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #dc0202 | — |
| string, string punctuation.section.embedded source | #96d0ff | — |
| variable | #ffb300 | — |
| variable.other | #dcdcdc | — |
| invalid.broken | #ff7259 | italic |
| invalid.deprecated | #ff7259 | italic |
| invalid.illegal | #ff7259 | italic |
| invalid.unimplemented | #ff7259 | italic |
| carriage-return | #fefefe | italic underline |
| message.error | #ff7259 | — |
| support, meta.property-name, string variable, support.constant, support.variable, meta.module-reference, markup.inline.raw, meta.diff.header, meta.separator, meta.output | #96d0ff | — |
| source.regexp, string.regexp | #96d0ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #96d0ff | — |
| string.regexp constant.character.escape | #ff7259 | |
| support.type.property-name.json | #ff7259 | — |
| punctuation.definition.list.begin.markdown | #f69d50 | — |
| markup.heading, markup.heading entity.name | #6cb6ff | |
| markup.quote | #ff7259 | — |
| markup.italic | #fefefe | italic |
| markup. | #fefefe | |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ff7259 | — |
| punctuation.section.embedded | #1edbb5 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #ff7259 | — |
| markup.changed, punctuation.definition.changed | #1edbb5 | — |
| markup.ignored, markup.untracked | #c3d91e | — |
| meta.diff.range | #dcbdfb | |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #1edbb5 | — |
| brackethighlighter.unmatched | #f6ff00 | — |
| constant.other.reference.link, string.other.link | #96d0ff | — |
| punctuation.separator.continuation, entity.name.type, type.keyword.storage, keyword.control, pinegpt.gpt.pine, keyword.operator.arithmetic, meta.type.annotation | #1edbb5 | |
| variable.other.pine | #ff7259 | |
| support.type.object.pine | #00eb7d | |
| string.interpolated, string.quoted.other, pinegpt.error.pine, string.other, string.regexp | #ff7259 | italic |
| contstant.flow.pine, support.other, support.type.property-name, constant.language, meta.type, constant.character.escape | #ff7259 | |
| meta.function.pine, variable.parameter.function.pine, support.function, token.error-token.pine, entity.pine | #58aefe | |
| keyword.operator.assignment.compound, keyword.operator.assignment, support.type, keyword.operator, type.keyword, punctuation.section.embedded, punctuation.separator.continuation, pinegpt.gpt.pine, keyword.operator.logical, keyword.operator, keyword.operator.logical.pine, punctuation.seperator.brackets.pine | #1edbb5 | bold |
| comment, comment.line.double-slash | #959595 | |
| support.type.property-name | #ff9650 | — |
| support.type.property-constant | #ff934c | — |
| constant.language.hex-color.pine | #dcdcdc | italic |
| pinegpt.backtick.pine | #00000000 | — |
| pinegpt.response.pine | #80ff00 | — |
| pinegpt.bullets.pine | #FFFFFF | — |
| meta.selector | #dcdcdc | |
| meta.return-type | #ff0000 | |
| meta.cast | #03fffb | |
| punctuation.separator.parameters | #bbbaba | bold |
| entity.name.method, constant.other.pine, variable.language.pine | #ffa600 | bold |
| entity.name.function | #0887ff | bold |
| entity.name, support.variable, constant.numeric, pinegpt.text.pine, keyword.operator.ternary, variable.parameter.function.language.special | #fdb603 | |
| function.keyword.pine | #fdb603 | italic |
| entity.other.attribute-name | #ff7b00 | |
| string.quoted.double, string.quoted.single, string, string.quoted.triple, punctuation.definition.string.begin,punctuation.definition.string.end | #479e68 | — |
| type | #00e284 | — |
| error.log.pine | #FF0000 | |
| warning.log.pine | #E3FF40 | |
| info.log.pine | #E0E0E0 | |
| import | #fbff00 | — |
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}!`;
}