Created
August 16, 2021 05:59
-
-
Save al6x/908eb77e002d3e1f56ea00983b0e4d11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
// Nim --------------------------------------------------------------------------------------- | |
{ // Bold | |
"scope": [ | |
"entity.name.function.nim", | |
], | |
"settings": { "foreground": "#111827", "fontStyle": "bold" } // #3730A3 | |
}, | |
{ // Statements | |
"scope": [ | |
"keyword.other.nim", | |
"source.nim keyword.other", | |
"keyword.control.nim", | |
"meta.preprocessor.pragma.nim", | |
"punctuation.pragma.start.nim", | |
"punctuation.pragma.end.nim", | |
], | |
"settings": { "foreground": "#3730A3" } //3730A3 | |
}, | |
{ // Types | |
"scope": [ | |
"storage.type.concrete.nim", | |
"storage.type.generic.nim", | |
"support.type.nim", | |
], | |
"settings": { "foreground": "#111827" } // 818CF8 #6366F1 | |
}, | |
{ // Normal | |
"scope": [ | |
"support.function.any-method.nim", | |
"keyword.boolean.nim", | |
"constant.language.nim", | |
"source.nim keyword.control.export", | |
"source.nim", | |
], | |
"settings": { "foreground": "#111827", "fontStyle": "" } | |
}, | |
{ // Ignored | |
"scope": [ | |
], | |
"settings": { "foreground": "#9CA3AF", "fontStyle": "" } // #6366F1 | |
}, | |
{ // Numbers and String | |
"scope": [ | |
"source.nim constant.numeric" | |
], | |
"settings": { "foreground": "#065F46" } // 818CF8 | |
}, | |
{ | |
"scope": [ | |
"punctuation.definition.template-expression.begin.nim", | |
"punctuation.definition.template-expression.end.nim", | |
"constant.character.escape.double-quote.nim", | |
"string.quoted.nim" | |
], | |
"settings": { "foreground": "#B45309" } | |
}, | |
{ // Instance variables | |
"scope": [ | |
], | |
"settings": { "foreground": "#B45309" } // 78350F | |
}, | |
{ // Comment | |
"scope": [ "punctuation.definition.comment.nim" ], | |
"settings": { "foreground": "#047857", "fontStyle": "bold" } | |
}, | |
{ | |
"scope": [ "comment.nim",], | |
"settings": { "foreground": "#047857" } | |
} | |
] | |
}, | |
"workbench.colorTheme": "Default Light+", | |
"editor.semanticHighlighting.enabled": false, | |
"workbench.statusBar.visible": false, | |
"editor.foldingImportsByDefault": true, | |
"editor.foldingHighlight": false, | |
"highlight.regexes": { | |
// type Type | |
"(\n)(type|with)(\\s+)([A-Z][a-zA-Z0-9]+)": { | |
"filterFileRegex": ".*.nim$", | |
"decorations": [ | |
{}, { "color": "#3730A3" }, {}, { "color": "#111827", "fontWeight": "bold" } // #3730A3 | |
] | |
}, | |
// self|tself | |
"([^A-Za-z0-9_])(self|tself)([^A-Za-z0-9_])": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#B45309" }, {} | |
] | |
}, | |
// : | |
"(:)": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{ "color": "#9CA3AF" } | |
] | |
}, | |
// Avoiding hiding `a: Time.now` | |
"(: *)([A-Z][A-Za-z0-9_\\[\\]]*|int[^A-Za-z0-9]|string[^A-Za-z0-9]|float[^A-Za-z0-9]|void[^A-Za-z0-9]|bool[^A-Za-z0-9])\\.": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#111827" } | |
] | |
}, | |
// Custom types ignored | |
"(: *)([A-Z][A-Za-z0-9_\\[\\]]*)": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#9CA3AF" } | |
] | |
}, | |
"(: *)(var|ref)( *[A-Z][A-Za-z0-9_\\[\\]]*)": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#9CA3AF" }, { "color": "#9CA3AF" } | |
] | |
}, | |
// Base types ignored | |
"(: *)(int|string|float|void|bool)([^A-Za-z0-9])": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#9CA3AF" } | |
] | |
}, | |
"(: *)(var|ref)( *int|string|float|void|bool)([^A-Za-z0-9])": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#9CA3AF" }, { "color": "#9CA3AF" } | |
] | |
}, | |
// tuple, seq, range, Table | |
"(: *)(tuple|seq|range|Table|type)(\\[[^\\]]+[\\]]+)": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#9CA3AF" }, { "color": "#9CA3AF" } | |
] | |
}, | |
"(: *)(ref *| var *)(tuple|seq|range|Table)(\\[[^\\]]+[\\]]+)": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#9CA3AF" }, { "color": "#9CA3AF" }, { "color": "#9CA3AF" } | |
] | |
}, | |
// TODO | |
"(\n)(todo)": { | |
"filterFileRegex": ".*.nim$", | |
"regexFlags": "g", | |
"decorations": [ | |
{}, { "color": "#111827", "fontWeight": "bold" } | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment