Commit: patch 9.1.0323: filetype: cabal config files may not be recognized

6 views
Skip to first unread message

Christian Brabandt

unread,
Apr 14, 2024, 2:30:12 PM4/14/24
to vim...@googlegroups.com
patch 9.1.0323: filetype: cabal config files may not be recognized

Commit: https://github.com/vim/vim/commit/799dedec0e959d7a18df8a06d497770706d1627c
Author: Wu, Zhenyu <wuzh...@ustc.edu>
Date: Sun Apr 14 20:22:19 2024 +0200

patch 9.1.0323: filetype: cabal config files may not be recognized

Problem: filetype: cabal config files may not be recognized
Solution: Change filetype pattern to '*/{,.}cabal/config'
(Wu Zhenyu)

closes: #14498

Signed-off-by: Wu, Zhenyu <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c7e2015a0..61f17c458 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -975,11 +975,7 @@ au BufNewFile,BufRead *.hs,*.hsc,*.hs-boot,*.hsig setf haskell
au BufNewFile,BufRead *.lhs setf lhaskell
au BufNewFile,BufRead *.chs setf chaskell
au BufNewFile,BufRead cabal.project setf cabalproject
-au BufNewFile,BufRead $HOME/.cabal/config setf cabalconfig
-if exists('$XDG_CONFIG_HOME')
- au BufNewFile,BufRead $XDG_CONFIG_HOME/cabal/config setf cabalconfig
-endif
-au BufNewFile,BufRead $HOME/.config/cabal/config setf cabalconfig
+au BufNewFile,BufRead */{.,}cabal/config setf cabalconfig
au BufNewFile,BufRead cabal.config setf cabalconfig
au BufNewFile,BufRead *.persistentmodels setf haskellpersistent

diff --git a/src/version.c b/src/version.c
index 2d1a6b674..7411921df 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 323,
/**/
322,
/**/
Reply all
Reply to author
Forward
0 new messages