From cea6988acf7cfeaf1b62e63d11daa2ef65d524bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Starski?= Date: Fri, 17 Jan 2020 00:15:51 +0100 Subject: [PATCH 1/5] Added support for the typescript files --- colors/codedark.vim | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/colors/codedark.vim b/colors/codedark.vim index b8af5df..5ee9321 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -284,6 +284,62 @@ call hi('jsObjectValue', s:cdLightBlue, {}, 'none', {}) call hi('jsParen', s:cdLightBlue, {}, 'none', {}) call hi('jsObjectProp', s:cdLightBlue, {}, 'none', {}) +" Typescript: +call hi('typescriptLabel', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptExceptions', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptBraces', s:cdFront, {}, 'none', {}) +call hi('typescriptEndColons', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptParens', s:cdFront, {}, 'none', {}) +call hi('typescriptDocTags', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptLogicSymbols', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptImport', s:cdPink, {}, 'none', {}) +call hi('typescriptBOM', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptVariableDeclaration', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptVariable', s:cdBlue, {}, 'none', {}) +call hi('typescriptExport', s:cdPink, {}, 'none', {}) +call hi('typescriptAliasDeclaration', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptClassName', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptAccessibilityModifier', s:cdBlue, {}, 'none', {}) +call hi('typescriptOperator', s:cdBlue, {}, 'none', {}) +call hi('typescriptArrowFunc', s:cdBlue, {}, 'none', {}) +call hi('typescriptMethodAccessor', s:cdBlue, {}, 'none', {}) +call hi('typescriptMember', s:cdYellow, {}, 'none', {}) +call hi('typescriptTypeReference', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptDefault', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptTemplateSB', s:cdYellowOrange, {}, 'none', {}) +call hi('typescriptArrowFuncArg', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptParamImpl', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptFuncComma', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptCastKeyword', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptCall', s:cdBlue, {}, 'none', {}) +call hi('typescriptCase', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptReserved', s:cdPink, {}, 'none', {}) +call hi('typescriptDefault', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptDecorator', s:cdYellow, {}, 'none', {}) +call hi('typescriptPredefinedType', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptClassHeritage', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptClassExtends', s:cdBlue, {}, 'none', {}) +call hi('typescriptClassKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptBlock', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptDOMDocProp', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptTemplateSubstitution', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptClassBlock', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptFuncCallArg', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptIndexExpr', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptConditionalParen', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptArray', s:cdYellow, {}, 'none', {}) +call hi('typescriptES6SetProp', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptStringMethod', s:cdYellow, {}, 'none', {}) +call hi('typescriptObjectLiteral', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptTypeParameter', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptEnumKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptEnum', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptLoopParen', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptParenExp', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptModule', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptAmbientDeclaration', s:cdBlue, {}, 'none', {}) +call hi('typescriptModule', s:cdBlue, {}, 'none', {}) + " XML: call hi('xmlTag', s:cdBlueGreen, {}, 'none', {}) call hi('xmlTagName', s:cdBlueGreen, {}, 'none', {}) From 6e4e6702685e5c7b219e2d9ae8741ece4539a848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Starski?= Date: Fri, 17 Jan 2020 00:38:17 +0100 Subject: [PATCH 2/5] More keywords added for typescript support --- colors/codedark.vim | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 5ee9321..b043c16 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -290,14 +290,16 @@ call hi('typescriptExceptions', s:cdLightBlue, {}, 'none', {}) call hi('typescriptBraces', s:cdFront, {}, 'none', {}) call hi('typescriptEndColons', s:cdLightBlue, {}, 'none', {}) call hi('typescriptParens', s:cdFront, {}, 'none', {}) -call hi('typescriptDocTags', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptDocTags', s:cdBlue, {}, 'none', {}) +call hi('typescriptDocComment', s:cdBlueGreen, {}, 'none', {}) call hi('typescriptLogicSymbols', s:cdLightBlue, {}, 'none', {}) call hi('typescriptImport', s:cdPink, {}, 'none', {}) call hi('typescriptBOM', s:cdLightBlue, {}, 'none', {}) call hi('typescriptVariableDeclaration', s:cdLightBlue, {}, 'none', {}) call hi('typescriptVariable', s:cdBlue, {}, 'none', {}) call hi('typescriptExport', s:cdPink, {}, 'none', {}) -call hi('typescriptAliasDeclaration', s:cdLightBlue, {}, 'none', {}) +call hi('typescriptAliasDeclaration', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptAliasKeyword', s:cdBlue, {}, 'none', {}) call hi('typescriptClassName', s:cdBlueGreen, {}, 'none', {}) call hi('typescriptAccessibilityModifier', s:cdBlue, {}, 'none', {}) call hi('typescriptOperator', s:cdBlue, {}, 'none', {}) @@ -329,7 +331,6 @@ call hi('typescriptIndexExpr', s:cdLightBlue, {}, 'none', {}) call hi('typescriptConditionalParen', s:cdLightBlue, {}, 'none', {}) call hi('typescriptArray', s:cdYellow, {}, 'none', {}) call hi('typescriptES6SetProp', s:cdLightBlue, {}, 'none', {}) -call hi('typescriptStringMethod', s:cdYellow, {}, 'none', {}) call hi('typescriptObjectLiteral', s:cdLightBlue, {}, 'none', {}) call hi('typescriptTypeParameter', s:cdBlueGreen, {}, 'none', {}) call hi('typescriptEnumKeyword', s:cdBlue, {}, 'none', {}) @@ -339,6 +340,16 @@ call hi('typescriptParenExp', s:cdLightBlue, {}, 'none', {}) call hi('typescriptModule', s:cdLightBlue, {}, 'none', {}) call hi('typescriptAmbientDeclaration', s:cdBlue, {}, 'none', {}) call hi('typescriptModule', s:cdBlue, {}, 'none', {}) +call hi('typescriptFuncTypeArrow', s:cdBlue, {}, 'none', {}) +call hi('typescriptInterfaceHeritage', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptInterfaceName', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptInterfaceKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptInterfaceExtends', s:cdBlue, {}, 'none', {}) +call hi('typescriptGlobal', s:cdBlueGreen, {}, 'none', {}) +call hi('typescriptAsyncFuncKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptFuncKeyword', s:cdBlue, {}, 'none', {}) +call hi('typescriptGlobalMethod', s:cdYellow, {}, 'none', {}) +call hi('typescriptPromiseMethod', s:cdYellow, {}, 'none', {}) " XML: call hi('xmlTag', s:cdBlueGreen, {}, 'none', {}) From da7c3f81ef63daa7d9302276e0c6114460cb5b5f Mon Sep 17 00:00:00 2001 From: 89luca89 Date: Sun, 29 Mar 2020 21:34:28 +0200 Subject: [PATCH 3/5] Golang use BlueGreen for types --- colors/codedark.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index b043c16..4d90392 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -368,11 +368,11 @@ call hi('goImport', s:cdBlue, {}, 'none', {}) call hi('goVar', s:cdBlue, {}, 'none', {}) call hi('goConst', s:cdBlue, {}, 'none', {}) call hi('goStatement', s:cdPink, {}, 'none', {}) -call hi('goType', s:cdBlue, {}, 'none', {}) -call hi('goSignedInts', s:cdBlue, {}, 'none', {}) -call hi('goUnsignedInts', s:cdBlue, {}, 'none', {}) -call hi('goFloats', s:cdBlue, {}, 'none', {}) -call hi('goComplexes', s:cdBlue, {}, 'none', {}) +call hi('goType', s:cdBlueGreen, {}, 'none', {}) +call hi('goSignedInts', s:cdBlueGreen, {}, 'none', {}) +call hi('goUnsignedInts', s:cdBlueGreen, {}, 'none', {}) +call hi('goFloats', s:cdBlueGreen, {}, 'none', {}) +call hi('goComplexes', s:cdBlueGreen, {}, 'none', {}) call hi('goBuiltins', s:cdYellow, {}, 'none', {}) call hi('goBoolean', s:cdBlue, {}, 'none', {}) call hi('goPredefinedIdentifiers', s:cdBlue, {}, 'none', {}) From 5819d261c7987da5479889f83f2e1e33577adfec Mon Sep 17 00:00:00 2001 From: 89luca89 Date: Sun, 29 Mar 2020 21:40:24 +0200 Subject: [PATCH 4/5] Add Blue accent to YAML keys and constants --- colors/codedark.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/colors/codedark.vim b/colors/codedark.vim index b043c16..3fa32b6 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -430,3 +430,6 @@ call hi('luaFuncArgName', s:cdLightBlue, {}, 'none', {}) call hi('luaFuncKeyword', s:cdPink, {}, 'none', {}) call hi('luaLocal', s:cdPink, {}, 'none', {}) call hi('luaBuiltIn', s:cdBlue, {}, 'none', {}) +" YAML: +call hi('yamlKey', s:cdBlue, {}, 'none', {}) +call hi('yamlConstant', s:cdBlue, {}, 'none', {}) From 3aa0ae22f19a128d0d078546b38fb869f8a4cce5 Mon Sep 17 00:00:00 2001 From: Maximilien Zaleski Date: Tue, 26 May 2020 11:40:17 +0100 Subject: [PATCH 5/5] Changed goReceiverType to cdFront --- colors/codedark.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index b043c16..c917eb5 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -384,7 +384,7 @@ call hi('goTypeName', s:cdBlueGreen, {}, 'none', {}) call hi('goVarAssign', s:cdLightBlue, {}, 'none', {}) call hi('goVarDefs', s:cdLightBlue, {}, 'none', {}) call hi('goReceiver', s:cdFront, {}, 'none', {}) -call hi('goReceiverType', s:cdDarkBlue, {}, 'none', {}) +call hi('goReceiverType', s:cdFront, {}, 'none', {}) call hi('goFunctionCall', s:cdYellow, {}, 'none', {}) call hi('goMethodCall', s:cdYellow, {}, 'none', {}) call hi('goSingleDecl', s:cdLightBlue, {}, 'none', {})