runtime/cabal: 4f4d51a942cc2c6b3e936ee0f93f00c2d000065c

port cabal syntax file only
This commit is contained in:
Saad Parwaiz 2021-03-03 01:41:49 +00:00
parent bda12927be
commit 4053b7b1ca

View File

@ -4,7 +4,7 @@
" Maintainer: Marcin Szamotulski <profunctor@pm.me> " Maintainer: Marcin Szamotulski <profunctor@pm.me>
" Previous Maintainer: Vincent Berthoux <twinside@gmail.com> " Previous Maintainer: Vincent Berthoux <twinside@gmail.com>
" File Types: .cabal " File Types: .cabal
" Last Change: 15 May 2018 " Last Change: 3 Oct 2020
" v1.5: Incorporated changes from " v1.5: Incorporated changes from
" https://github.com/sdiehl/haskell-vim-proto/blob/master/vim/syntax/cabal.vim " https://github.com/sdiehl/haskell-vim-proto/blob/master/vim/syntax/cabal.vim
" Use `syn keyword` instead of `syn match`. " Use `syn keyword` instead of `syn match`.
@ -62,11 +62,12 @@ syn keyword cabalCategory contained
\ source-repository \ source-repository
\ flag \ flag
\ custom-setup \ custom-setup
\ common
syn match cabalCategoryTitle contained /[^{]*\ze{\?/ syn match cabalCategoryTitle contained /[^{]*\ze{\?/
syn match cabalCategoryRegion syn match cabalCategoryRegion
\ contains=cabalCategory,cabalCategoryTitle \ contains=cabalCategory,cabalCategoryTitle
\ nextgroup=cabalCategory skipwhite \ nextgroup=cabalCategory skipwhite
\ /^\c\s*\(contained\|executable\|library\|benchmark\|test-suite\|source-repository\|flag\|custom-setup\)\+\s*\%(.*$\|$\)/ \ /^\c\s*\(contained\|executable\|library\|benchmark\|test-suite\|source-repository\|flag\|custom-setup\|common\)\+\s*\%(.*$\|$\)/
syn keyword cabalTruth true false syn keyword cabalTruth true false
" cabalStatementRegion which limits the scope of cabalStatement keywords, this " cabalStatementRegion which limits the scope of cabalStatement keywords, this
@ -76,6 +77,7 @@ syn keyword cabalStatement contained containedin=cabalStatementRegion
\ default-language \ default-language
\ default-extensions \ default-extensions
\ author \ author
\ autogen-modules
\ branch \ branch
\ bug-reports \ bug-reports
\ build-depends \ build-depends
@ -110,6 +112,7 @@ syn keyword cabalStatement contained containedin=cabalStatementRegion
\ homepage \ homepage
\ hs-source-dirs \ hs-source-dirs
\ hugs-options \ hugs-options
\ import
\ include-dirs \ include-dirs
\ includes \ includes
\ install-includes \ install-includes