view runtime/syntax/cabalproject.vim @ 24770:e75971b83263 v8.2.2923

patch 8.2.2923: EBCDIC build is broken Commit: https://github.com/vim/vim/commit/eecf2b35a146d7d5512f2525ad631d796e19edac Author: K.Takata <kentkt@csc.jp> Date: Wed Jun 2 14:56:39 2021 +0200 patch 8.2.2923: EBCDIC build is broken Problem: EBCDIC build is broken. Solution: Move sortFunctions() to evalfunc.c. (Ken Takata, closes https://github.com/vim/vim/issues/8306)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Jun 2021 15:00:03 +0200
parents 29c5f168c6fd
children
line wrap: on
line source

" Vim syntax file
" Language:		Cabal Project
" Maintainer:		profunctor@pm.me
" Last Change:		Marcin Szamotulski
" Original Author:	Marcin Szamotulski

if exists("b:current_syntax")
  finish
endif

syn match CabalProjectComment /^\s*--.*/ contains=@Spell
syn match CabalProjectField /^\w\%(\w\|-\)\+/ contains=@NoSpell

syn keyword CabalProjectBoolean true false True False
syn keyword CabalProjectCompiler ghc ghcjs jhc lhc uhc haskell-suite
syn match CabalProjectNat /\<\d\+\>/
syn keyword CabalProjectJobs $ncpus
syn keyword CabalProjectProfilingLevel default none exported-functions toplevel-functions all-functions

hi def link CabalProjectComment Comment
hi def link CabalProjectField Statement
hi def link CabalProjectBoolean Boolean
hi def link CabalProjectCompiler Identifier
hi def link CabalProjectNat Number
hi def link CabalProjectJobs Number
hi def link CabalProjectProfilingLevel Statement

let b:current_syntax = "cabal.project"