comparison runtime/syntax/cabal.vim @ 22565:17c4178f26ea

Update runtime files. Commit: https://github.com/vim/vim/commit/4f4d51a942cc2c6b3e936ee0f93f00c2d000065c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 11 13:57:40 2020 +0200 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Oct 2020 14:00:05 +0200
parents bbff863d3cae
children 29c5f168c6fd
comparison
equal deleted inserted replaced
22564:2e79e579dd52 22565:17c4178f26ea
2 " Language: Haskell Cabal Build file 2 " Language: Haskell Cabal Build file
3 " Author: Vincent Berthoux <twinside@gmail.com> 3 " Author: Vincent Berthoux <twinside@gmail.com>
4 " Maintainer: Marcin Szamotulski <profunctor@pm.me> 4 " Maintainer: Marcin Szamotulski <profunctor@pm.me>
5 " Previous Maintainer: Vincent Berthoux <twinside@gmail.com> 5 " Previous Maintainer: Vincent Berthoux <twinside@gmail.com>
6 " File Types: .cabal 6 " File Types: .cabal
7 " Last Change: 15 May 2018 7 " Last Change: 3 Oct 2020
8 " v1.5: Incorporated changes from 8 " v1.5: Incorporated changes from
9 " https://github.com/sdiehl/haskell-vim-proto/blob/master/vim/syntax/cabal.vim 9 " https://github.com/sdiehl/haskell-vim-proto/blob/master/vim/syntax/cabal.vim
10 " Use `syn keyword` instead of `syn match`. 10 " Use `syn keyword` instead of `syn match`.
11 " Added cabalStatementRegion to limit matches of keywords, which fixes 11 " Added cabalStatementRegion to limit matches of keywords, which fixes
12 " the highlighting of description's value. 12 " the highlighting of description's value.
60 \ benchmark 60 \ benchmark
61 \ test-suite 61 \ test-suite
62 \ source-repository 62 \ source-repository
63 \ flag 63 \ flag
64 \ custom-setup 64 \ custom-setup
65 \ common
65 syn match cabalCategoryTitle contained /[^{]*\ze{\?/ 66 syn match cabalCategoryTitle contained /[^{]*\ze{\?/
66 syn match cabalCategoryRegion 67 syn match cabalCategoryRegion
67 \ contains=cabalCategory,cabalCategoryTitle 68 \ contains=cabalCategory,cabalCategoryTitle
68 \ nextgroup=cabalCategory skipwhite 69 \ nextgroup=cabalCategory skipwhite
69 \ /^\c\s*\(contained\|executable\|library\|benchmark\|test-suite\|source-repository\|flag\|custom-setup\)\+\s*\%(.*$\|$\)/ 70 \ /^\c\s*\(contained\|executable\|library\|benchmark\|test-suite\|source-repository\|flag\|custom-setup\|common\)\+\s*\%(.*$\|$\)/
70 syn keyword cabalTruth true false 71 syn keyword cabalTruth true false
71 72
72 " cabalStatementRegion which limits the scope of cabalStatement keywords, this 73 " cabalStatementRegion which limits the scope of cabalStatement keywords, this
73 " way they are not highlighted in description. 74 " way they are not highlighted in description.
74 syn region cabalStatementRegion start=+^\s*\(--\)\@<!\k\+\s*:+ end=+:+ 75 syn region cabalStatementRegion start=+^\s*\(--\)\@<!\k\+\s*:+ end=+:+
75 syn keyword cabalStatement contained containedin=cabalStatementRegion 76 syn keyword cabalStatement contained containedin=cabalStatementRegion
76 \ default-language 77 \ default-language
77 \ default-extensions 78 \ default-extensions
78 \ author 79 \ author
80 \ autogen-modules
79 \ branch 81 \ branch
80 \ bug-reports 82 \ bug-reports
81 \ build-depends 83 \ build-depends
82 \ build-tools 84 \ build-tools
83 \ build-type 85 \ build-type
108 \ ghc-prof-options 110 \ ghc-prof-options
109 \ ghc-shared-options 111 \ ghc-shared-options
110 \ homepage 112 \ homepage
111 \ hs-source-dirs 113 \ hs-source-dirs
112 \ hugs-options 114 \ hugs-options
115 \ import
113 \ include-dirs 116 \ include-dirs
114 \ includes 117 \ includes
115 \ install-includes 118 \ install-includes
116 \ ld-options 119 \ ld-options
117 \ license 120 \ license