view runtime/syntax/cabalproject.vim @ 32057:aa66dedd891c v9.0.1360

patch 9.0.1360: Cue files are not recognized Commit: https://github.com/vim/vim/commit/80c5b2c0f78b24e52c73bb162dda3ad85acd7e82 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Mon Feb 27 14:32:08 2023 +0000 patch 9.0.1360: Cue files are not recognized Problem: Cue files are not recognized. Solution: Add patterns for Cue files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12067)
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Feb 2023 15:45:03 +0100
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"