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/2] 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/2] 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', {})