From 436e5d395fd629c8d33b5cf7b373aad007f16851 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 21 Oct 2022 14:34:25 +0100 Subject: [PATCH] patch 9.0.0814: aws config files are not recognized Problem: Aws config files are not recognized. Solution: Use "confini" for aws config files. (Justin M. Keyes, closes #11416) --- runtime/filetype.vim | 1 + src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 9feccd54e..421d2a36b 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1372,6 +1372,7 @@ au BufNewFile,BufRead pf.conf setf pf " ini style config files, using # comments au BufNewFile,BufRead */etc/pacman.conf,mpv.conf setf confini +au BufNewFile,BufRead */.aws/config,*/.aws/credentials setf confini " Pacman hooks au BufNewFile,BufRead *.hook diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index c1225a504..22e5198f2 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -120,7 +120,7 @@ let s:filename_checks = { \ 'conaryrecipe': ['file.recipe'], \ 'conf': ['auto.master'], \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'], - \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf'], + \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials'], \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], \ 'cook': ['file.cook'], \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'], diff --git a/src/version.c b/src/version.c index 1052fb819..690a1973a 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 814, /**/ 813, /**/ -- 2.40.0