Ai
4 Star 1 Fork 0

浙江智臾科技有限公司/api-javascript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
theme.light.ts 19.39 KB
一键复制 编辑 原始数据 按行查看 历史
沈鸿飞 提交于 2023-04-18 01:27 +08:00 . eslint;
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
// Theme data derived from:
// https://github.com/microsoft/vscode/raw/a716714a88891cad69c0753fb95923870df295f5/extensions/theme-defaults/themes/dark_plus.json
// This satisfies the contract of IRawTheme as defined in vscode-textmate.
export const theme_light = {
name: 'dolphindb.light',
settings: [
{
settings: {
foreground: '#000000',
background: '#ffffff'
}
},
{
scope: ['meta.embedded', 'source.groovy.embedded'],
settings: {
foreground: '#000000ff'
}
},
{
scope: 'emphasis',
settings: {
fontStyle: 'italic'
}
},
{
scope: 'strong',
settings: {
fontStyle: 'bold'
}
},
{
scope: 'meta.diff.header',
settings: {
foreground: '#000080'
}
},
{
scope: 'comment',
settings: {
foreground: '#000000'
}
},
{
scope: 'constant.language',
settings: {
foreground: '#0000ff'
}
},
{
scope: ['constant.numeric', 'variable.other.enummember', 'keyword.operator.plus.exponent', 'keyword.operator.minus.exponent'],
settings: {
foreground: '#ff0000'
}
},
{
scope: 'constant.regexp',
settings: {
foreground: '#811f3f'
}
},
{
name: 'css tags in selectors, xml tags',
scope: 'entity.name.tag',
settings: {
foreground: '#800000'
}
},
{
scope: 'entity.name.selector',
settings: {
foreground: '#800000'
}
},
{
scope: 'entity.other.attribute-name',
settings: {
foreground: '#ff0000'
}
},
{
scope: [
'entity.other.attribute-name.class.css',
'entity.other.attribute-name.class.mixin.css',
'entity.other.attribute-name.id.css',
'entity.other.attribute-name.parent-selector.css',
'entity.other.attribute-name.pseudo-class.css',
'entity.other.attribute-name.pseudo-element.css',
'source.css.less entity.other.attribute-name.id',
'entity.other.attribute-name.scss'
],
settings: {
foreground: '#800000'
}
},
{
scope: 'invalid',
settings: {
foreground: '#cd3131'
}
},
{
scope: 'markup.underline',
settings: {
fontStyle: 'underline'
}
},
{
scope: 'markup.bold',
settings: {
fontStyle: 'bold',
foreground: '#000080'
}
},
{
scope: 'markup.heading',
settings: {
fontStyle: 'bold',
foreground: '#800000'
}
},
{
scope: 'markup.italic',
settings: {
fontStyle: 'italic'
}
},
{
scope: 'markup.strikethrough',
settings: {
fontStyle: 'strikethrough'
}
},
{
scope: 'markup.inserted',
settings: {
foreground: '#098658'
}
},
{
scope: 'markup.deleted',
settings: {
foreground: '#a31515'
}
},
{
scope: 'markup.changed',
settings: {
foreground: '#0451a5'
}
},
{
scope: ['punctuation.definition.quote.begin.markdown', 'punctuation.definition.list.begin.markdown'],
settings: {
foreground: '#0451a5'
}
},
{
scope: 'markup.inline.raw',
settings: {
foreground: '#800000'
}
},
{
name: 'brackets of XML/HTML tags',
scope: 'punctuation.definition.tag',
settings: {
foreground: '#800000'
}
},
{
scope: ['meta.preprocessor', 'entity.name.function.preprocessor'],
settings: {
foreground: '#0000ff'
}
},
{
scope: 'meta.preprocessor.string',
settings: {
foreground: '#a31515'
}
},
{
scope: 'meta.preprocessor.numeric',
settings: {
foreground: '#098658'
}
},
{
scope: 'meta.structure.dictionary.key.python',
settings: {
foreground: '#0451a5'
}
},
{
scope: 'storage',
settings: {
foreground: '#0000ff'
}
},
{
scope: 'storage.type',
settings: {
foreground: '#0000ff'
}
},
{
scope: ['storage.modifier', 'keyword.operator.noexcept'],
settings: {
foreground: '#0000ff'
}
},
{
scope: ['string', 'meta.embedded.assembly'],
settings: {
foreground: '#a31515'
}
},
{
scope: [
'string.comment.buffered.block.pug',
'string.quoted.pug',
'string.interpolated.pug',
'string.unquoted.plain.in.yaml',
'string.unquoted.plain.out.yaml',
'string.unquoted.block.yaml',
'string.quoted.single.yaml',
'string.quoted.double.xml',
'string.quoted.single.xml',
'string.unquoted.cdata.xml',
'string.quoted.double.html',
'string.quoted.single.html',
'string.unquoted.html',
'string.quoted.single.handlebars',
'string.quoted.double.handlebars'
],
settings: {
foreground: '#0000ff'
}
},
{
scope: 'string.regexp',
settings: {
foreground: '#811f3f'
}
},
{
name: 'String interpolation',
scope: [
'punctuation.definition.template-expression.begin',
'punctuation.definition.template-expression.end',
'punctuation.section.embedded'
],
settings: {
foreground: '#0000ff'
}
},
{
name: 'Reset JavaScript string interpolation expression',
scope: ['meta.template.expression'],
settings: {
foreground: '#000000'
}
},
{
scope: [
'support.constant.property-value',
'support.constant.font-name',
'support.constant.media-type',
'support.constant.media',
'constant.other.color.rgb-value',
'constant.other.rgb-value',
'support.constant.color'
],
settings: {
foreground: '#0451a5'
}
},
{
scope: [
'support.type.vendored.property-name',
'support.type.property-name',
'variable.css',
'variable.scss',
'variable.other.less',
'source.coffee.embedded'
],
settings: {
foreground: '#ff0000'
}
},
{
scope: ['support.type.property-name.json'],
settings: {
foreground: '#0451a5'
}
},
{
scope: 'keyword',
settings: {
foreground: '#0000ff'
}
},
{
scope: 'keyword.control',
settings: {
foreground: '#0000ff'
}
},
{
scope: 'keyword.operator',
settings: {
foreground: '#000000'
}
},
{
scope: [
'keyword.operator.new',
'keyword.operator.expression',
'keyword.operator.cast',
'keyword.operator.sizeof',
'keyword.operator.alignof',
'keyword.operator.typeid',
'keyword.operator.alignas',
'keyword.operator.instanceof',
'keyword.operator.logical.python',
'keyword.operator.wordlike'
],
settings: {
foreground: '#0000ff'
}
},
{
scope: 'keyword.other.unit',
settings: {
foreground: '#098658'
}
},
{
scope: ['punctuation.section.embedded.begin.php', 'punctuation.section.embedded.end.php'],
settings: {
foreground: '#800000'
}
},
{
scope: 'support.function.git-rebase',
settings: {
foreground: '#0451a5'
}
},
{
scope: 'constant.sha.git-rebase',
settings: {
foreground: '#098658'
}
},
{
name: 'coloring of the Java import and package identifiers',
scope: ['storage.modifier.import.java', 'variable.language.wildcard.java', 'storage.modifier.package.java'],
settings: {
foreground: '#000000'
}
},
{
name: 'this.self',
scope: 'variable.language',
settings: {
foreground: '#0000ff'
}
},
// adds rules to the light vs rules
{
name: 'Function declarations',
scope: [
'entity.name.function',
'support.function',
'support.constant.handlebars',
'source.powershell variable.other.member',
'entity.name.operator.custom-literal' // See https://en.cppreference.com/w/cpp/language/user_literal
],
settings: {
foreground: '#795E26'
}
},
{
name: 'Types declaration and references',
scope: [
'support.class',
'support.type',
'entity.name.type',
'entity.name.namespace',
'entity.other.attribute',
'entity.name.scope-resolution',
'entity.name.class',
'storage.type.numeric.go',
'storage.type.byte.go',
'storage.type.boolean.go',
'storage.type.string.go',
'storage.type.uintptr.go',
'storage.type.error.go',
'storage.type.rune.go',
'storage.type.cs',
'storage.type.generic.cs',
'storage.type.modifier.cs',
'storage.type.variable.cs',
'storage.type.annotation.java',
'storage.type.generic.java',
'storage.type.java',
'storage.type.object.array.java',
'storage.type.primitive.array.java',
'storage.type.primitive.java',
'storage.type.token.java',
'storage.type.groovy',
'storage.type.annotation.groovy',
'storage.type.parameters.groovy',
'storage.type.generic.groovy',
'storage.type.object.array.groovy',
'storage.type.primitive.array.groovy',
'storage.type.primitive.groovy'
],
settings: {
foreground: '#0f96be'
}
},
{
name: 'Types declaration and references, TS grammar specific',
scope: [
'meta.type.cast.expr',
'meta.type.new.expr',
'support.constant.math',
'support.constant.dom',
'support.constant.json',
'entity.other.inherited-class'
],
settings: {
foreground: '#267f99'
}
},
{
name: 'Control flow / Special keywords',
scope: [
'keyword.control',
'source.cpp keyword.operator.new',
'source.cpp keyword.operator.delete',
'keyword.other.using',
'keyword.other.operator',
'entity.name.operator'
],
settings: {
foreground: '#AF00DB'
}
},
{
name: 'Variable and parameter name',
scope: [
'variable',
'meta.definition.variable.name',
'support.variable',
'entity.name.variable',
'constant.other.placeholder' // placeholders in strings
],
settings: {
foreground: '#000000'
}
},
{
name: 'Constants and enums',
scope: ['variable.other.constant', 'variable.other.enummember'],
settings: {
foreground: '#0070C1'
}
},
{
name: 'Object keys, TS grammar specific',
scope: ['meta.object-literal.key'],
settings: {
foreground: '#001080'
}
},
{
name: 'CSS property value',
scope: [
'support.constant.property-value',
'support.constant.font-name',
'support.constant.media-type',
'support.constant.media',
'constant.other.color.rgb-value',
'constant.other.rgb-value',
'support.constant.color'
],
settings: {
foreground: '#0451a5'
}
},
{
name: 'Regular expression groups',
scope: [
'punctuation.definition.group.regexp',
'punctuation.definition.group.assertion.regexp',
'punctuation.definition.character-class.regexp',
'punctuation.character.set.begin.regexp',
'punctuation.character.set.end.regexp',
'keyword.operator.negation.regexp',
'support.other.parenthesis.regexp'
],
settings: {
foreground: '#d16969'
}
},
{
scope: [
'constant.character.character-class.regexp',
'constant.other.character-class.set.regexp',
'constant.other.character-class.regexp',
'constant.character.set.regexp'
],
settings: {
foreground: '#811f3f'
}
},
{
scope: 'keyword.operator.quantifier.regexp',
settings: {
foreground: '#000000'
}
},
{
scope: ['keyword.operator.or.regexp', 'keyword.control.anchor.regexp'],
settings: {
foreground: '#EE0000'
}
},
{
scope: 'constant.character',
settings: {
foreground: '#0000ff'
}
},
{
scope: 'constant.character.escape',
settings: {
foreground: '#EE0000'
}
},
{
scope: 'entity.name.label',
settings: {
foreground: '#000000'
}
},
{ scope: 'keyword.operator', settings: { foreground: '#f00' } },
{ scope: 'keyword.operator.instanceof', settings: { foreground: '#f00' } },
{ scope: 'keyword.operator.logical', settings: { foreground: '#f00' } },
{ scope: 'keyword.operator.logical.python', settings: { foreground: '#f00' } },
// { "scope": "keyword.control", "settings": { "foreground": "#bc00eb" } }
// { "scope": "support.type.property-name", "settings": { "foreground": "#0451a5" } },
{ scope: 'support.type.property-name', settings: { foreground: '#000000' } },
// { "scope": "variable.other", "settings": { "foreground": "#000000", "fontStyle": "" } },
// { "scope": "variable.parameter", "settings": { "foreground": "#000000", "fontStyle": "" } },
{ scope: 'variable', settings: { foreground: '#000000', fontStyle: '' } },
// { "scope": "variable.other.property", "settings": { "foreground": "#0115AF" } },
{ scope: 'variable.other.constant', settings: { foreground: '#000000' } },
{ scope: 'keyword.operator.expression.typeof.js', settings: { foreground: '#f00' } },
{ scope: 'storage.type', settings: { foreground: '#0000ee' } }, // const
{ scope: 'storage.modifier', settings: { foreground: '#0000ee' } },
{ scope: 'constant.language', settings: { foreground: '#0000ee' } },
{ scope: 'constant.numeric', settings: { foreground: '#00a000' } }, // number
{ scope: 'variable.language.this', settings: { foreground: '#267f99' } },
{ scope: 'string.quoted.docstring.multi.python', settings: { foreground: '#000000' } },
{ scope: 'punctuation.separator.delimiter.c', settings: { foreground: '#f00' } },
{ scope: 'punctuation.separator.pointer-access.c', settings: { foreground: '#f00' } },
{ scope: 'entity.name.tag.pug', settings: { foreground: '#f00' } },
{ scope: 'entity.other.attribute-name.id.pug', settings: { foreground: '#722dd2' } },
{ scope: 'entity.other.attribute-name.class.pug', settings: { foreground: '#267f99' } },
{ scope: 'entity.other.attribute-name.tag.pug', settings: { foreground: '#8e5e1a' } },
{ scope: 'entity.name.tag', settings: { foreground: '#000000', fontStyle: 'bold' } },
{ scope: 'punctuation.definition.tag', settings: { foreground: '#000000', fontStyle: 'bold' } },
// function: bold
{ scope: 'entity.name.function', settings: { foreground: '#000000', fontStyle: 'bold' } },
{ scope: 'support.function', settings: { foreground: '#000000', fontStyle: 'bold' } },
{ scope: 'constant.language.module.http', settings: { foreground: '#00f' } },
{ scope: 'constant.language.directive.module', settings: { foreground: '#00f' } },
{ scope: 'constant.language.directive.module.main', settings: { foreground: '#f00', fontStyle: 'bold' } },
{ scope: 'meta.decorator.dolphindb', settings: { foreground: '#aa6f00' } },
{ scope: 'punctuation.definition.string.begin.json.comments', settings: { foreground: '#111' } },
{ scope: 'punctuation.definition.string.end.json.comments', settings: { foreground: '#111' } },
{ scope: 'punctuation.support.type.property-name.begin.json.comments', settings: { foreground: '#111' } },
{ scope: 'punctuation.support.type.property-name.end.json.comments', settings: { foreground: '#111' } }
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dolphindb/api-javascript.git
git@gitee.com:dolphindb/api-javascript.git
dolphindb
api-javascript
api-javascript
main

搜索帮助