From 4493db06e3d2ad2373c70715a9d1b4415d85cca3 Mon Sep 17 00:00:00 2001 From: Igor Ranieri Elland Date: Sat, 3 Oct 2020 20:39:25 +0200 Subject: [PATCH] Added basic Haskell support. --- colors/vadelma.vim | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/colors/vadelma.vim b/colors/vadelma.vim index d74df03..d92373f 100644 --- a/colors/vadelma.vim +++ b/colors/vadelma.vim @@ -25,10 +25,10 @@ " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell " copies of the Software, and to permit persons to whom the Software is " furnished to do so, subject to the following conditions: -" +" " The above copyright notice and this permission notice shall be included in " all copies or substantial portions of the Software. -" +" " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -107,10 +107,10 @@ function! s:hl(hl_group, bg_color, fg_color, ...) exe printf( \ "hi %s guibg=%s ctermbg=%s guifg=%s ctermfg=%s gui=%s cterm=%s", \ a:hl_group, - \ l:bg_color[0], - \ l:bg_color[1], - \ l:fg_color[0], - \ l:fg_color[1], + \ l:bg_color[0], + \ l:bg_color[1], + \ l:fg_color[0], + \ l:fg_color[1], \ l:style, \ l:style \) @@ -184,6 +184,15 @@ hi! link rubySymbol Number hi! link rubyLocalVariableOrMethod Identifier hi! link rubyPseudoVariable Number +" Haskell Highlighting +hi! link haskellType Type +hi! link haskellIdentifier Identifier +hi! link haskellOperators Operator +hi! link haskellWhere Operator +hi! link haskellDelimiter Operator +hi! link haskellImportKeywords Statement +hi! link haskellStatement Statement + if has('nvim') call s:hl('healthSuccess', [], s:green) hi! link NormalNC Normal @@ -200,5 +209,4 @@ endif " * Markdown " * HTML " * LaTeX -" * Haskell " * Others?