From d2e987010c5fbd72b7dcd0d82218f2ac11e16ba3 Mon Sep 17 00:00:00 2001 From: Xavier Lucas Date: Wed, 13 Sep 2017 23:01:11 +0200 Subject: [PATCH] Golang syntax highlight --- colors/codedark.vim | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/colors/codedark.vim b/colors/codedark.vim index a108176..b19c65a 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -110,6 +110,7 @@ endif let s:cdGray = {'gui': '#808080', 'cterm': s:cterm04, 'cterm256': '08'} let s:cdViolet = {'gui': '#646695', 'cterm': s:cterm04, 'cterm256': '60'} let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '75'} +let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '73'} let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '117'} if g:codedark_conservative | let s:cdLightBlue = s:cdFront | endif let s:cdGreen = {'gui': '#608B4E', 'cterm': s:cterm0B, 'cterm256': '65'} @@ -255,3 +256,29 @@ call hi('jsThis', s:cdBlue, {}, 'none', {}) " Ruby: call hi('rubyClassNameTag', s:cdBlueGreen, {}, 'none', {}) +" Golang: +call hi('goPackage', s:cdBlue, {}, 'none', {}) +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('goBuiltins', s:cdYellow, {}, 'none', {}) +call hi('goBoolean', s:cdBlue, {}, 'none', {}) +call hi('goPredefinedIdentifiers', s:cdBlue, {}, 'none', {}) +call hi('goTodo', s:cdGreen, {}, 'none', {}) +call hi('goDeclaration', s:cdBlue, {}, 'none', {}) +call hi('goDeclType', s:cdBlue, {}, 'none', {}) +call hi('goTypeDecl', s:cdBlue, {}, 'none', {}) +call hi('goTypeName', s:cdBlueGreen, {}, 'none', {}) +call hi('goVarDefs', s:cdLightBlue, {}, 'none', {}) +call hi('goReceiver', s:cdFront, {}, 'none', {}) +call hi('goReceiverType', s:cdDarkBlue, {}, 'none', {}) +call hi('goFunctionCall', s:cdYellow, {}, 'none', {}) +call hi('goMethodCall', s:cdYellow, {}, 'none', {}) +call hi('goSingleDecl', s:cdLightBlue, {}, 'none', {}) +call hi('Type', s:cdDarkBlue, {}, 'none', {})