codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Cabal Project3" Maintainer: profunctor@pm.me4" Last Change: Marcin Szamotulski5" Original Author: Marcin Szamotulski6 7if exists("b:current_syntax")8 finish9endif10 11syn match CabalProjectComment /^\s*--.*/ contains=@Spell12syn match CabalProjectField /^\w\%(\w\|-\)\+/ contains=@NoSpell13 14syn keyword CabalProjectBoolean true false True False15syn keyword CabalProjectCompiler ghc ghcjs jhc lhc uhc haskell-suite16syn match CabalProjectNat /\<\d\+\>/17syn keyword CabalProjectJobs $ncpus18syn keyword CabalProjectProfilingLevel default none exported-functions toplevel-functions all-functions19 20hi def link CabalProjectComment Comment21hi def link CabalProjectField Statement22hi def link CabalProjectBoolean Boolean23hi def link CabalProjectCompiler Identifier24hi def link CabalProjectNat Number25hi def link CabalProjectJobs Number26hi def link CabalProjectProfilingLevel Statement27 28let b:current_syntax = "cabal.project"29 