Permalink
Browse files

color cabal properties and settings as defines

  • Loading branch information...
1 parent 30261c8 commit 877c8513e298337ace76d43f6cc3a89d011a9ba1 @dag committed Sep 14, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 autoload/vim2hs/cabal.vim
  2. +2 −2 autoload/vim2hs/cabalconfig.vim
  3. +1 −1 syntax/cabal.vim
View
6 autoload/vim2hs/cabal.vim
@@ -9,18 +9,18 @@ function! vim2hs#cabal#comments() " {{{
endfunction " }}}
-function! vim2hs#cabal#constants() " {{{
+function! vim2hs#cabal#defines() " {{{
setlocal iskeyword=a-z,A-Z,-
- syntax match cabalConstant
+ syntax match cabalDefine
\ "^\s*\k\+\s*:\@="
\ display nextgroup=cabalDelimiter
syntax match cabalDelimiter
\ ":"
\ display contained
- highlight! link cabalConstant Constant
+ highlight! link cabalDefine Define
highlight! link cabalDelimiter Delimiter
endfunction " }}}
View
4 autoload/vim2hs/cabalconfig.vim
@@ -14,7 +14,7 @@ function! vim2hs#cabalconfig#constants() " {{{
syntax case match
- syntax match ccKeyword
+ syntax match ccDefine
\ "^\s*\k\+\s*:\@="
\ display nextgroup=ccDelimiter
@@ -33,7 +33,7 @@ function! vim2hs#cabalconfig#constants() " {{{
\ '\<[0-9]\+\.[0-9]\+'
\ display
- highlight! link ccKeyword Keyword
+ highlight! link ccDefine Define
highlight! link ccDelimiter Delimiter
highlight! link ccBoolean Boolean
highlight! link ccNumber Number
View
2 syntax/cabal.vim
@@ -1,7 +1,7 @@
syntax clear
call vim2hs#cabal#comments()
-call vim2hs#cabal#constants()
+call vim2hs#cabal#defines()
call vim2hs#cabal#statements()
call vim2hs#cabal#conditionals()
call vim2hs#cabal#folds()

0 comments on commit 877c851

Please sign in to comment.