vim-patch:7da90de: runtime(cabal): add missing haskell language editions (#39533)

closes: vim/vim#20097

https://github.com/vim/vim/commit/7da90de1cb6df8f2dcbab97d3c7b8b83fa0de13d

Co-authored-by: Léana 江 <leana.jiang+git@icloud.com>
This commit is contained in:
zeertzjq
2026-05-01 07:36:00 +08:00
committed by GitHub
parent 578727c25e
commit 858cd3d106
+5 -1
View File
@@ -5,6 +5,8 @@
" Previous Maintainer: Vincent Berthoux <twinside@gmail.com>
" File Types: .cabal
" Last Change: 22 Oct 2022
"
" 2026 Apr 29 by Léana: add missing haskell language editions
" 2026 Apr 20 by Vim project: remove wrong oneline keyword #20018
"
" v1.6: Added support for foreign-libraries
@@ -193,7 +195,9 @@ syn match cabalVersionRegionB
\ contains=cabalStatementRegion,cabalVersionOperator,cabalVersion
\ /^\s*\%(cabal-\)\?version\s*:.*$/
syn keyword cabalLanguage Haskell98 Haskell2010
" See the following link for all Haskell language editions supported by Cabal.
" https://cabal.readthedocs.io/en/stable/cabal-package-description-file.html#pkg-field-default-language
syn keyword cabalLanguage Haskell98 Haskell2010 GHC2021 GHC2024
" title region
syn match cabalName contained /:\@<=.*/