From: James McCoy Date: Sat, 14 Oct 2023 09:41:34 +0000 (+0200) Subject: patch 9.0.2024: no filetype detection for Debian sources X-Git-Tag: v9.0.2024^0 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bd734c3bead9e167eb6875f62cc06fab2379c422;p=thirdparty%2Fvim.git patch 9.0.2024: no filetype detection for Debian sources Problem: no filetype detection for Debian sources Solution: Add new deb822sources filetype closes: #13320 Signed-off-by: Christian Brabandt Co-authored-by: James McCoy --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 700fd6a61a..c25b89f553 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -544,6 +544,7 @@ au BufNewFile,BufRead copyright " Debian Sources.list au BufNewFile,BufRead */etc/apt/sources.list setf debsources au BufNewFile,BufRead */etc/apt/sources.list.d/*.list setf debsources +au BufNewFile,BufRead */etc/apt/sources.list.d/*.sources setf deb822sources " Deny hosts au BufNewFile,BufRead denyhosts.conf setf denyhosts diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 78e04d3848..dbaf9696f1 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -194,6 +194,7 @@ def s:GetFilenameChecks(): dict> debcontrol: ['/debian/control', 'any/debian/control'], debcopyright: ['/debian/copyright', 'any/debian/copyright'], debsources: ['/etc/apt/sources.list', '/etc/apt/sources.list.d/file.list', 'any/etc/apt/sources.list', 'any/etc/apt/sources.list.d/file.list'], + deb822sources: ['/etc/apt/sources.list.d/file.sources', 'any/etc/apt/sources.list.d/file.sources'], def: ['file.def'], denyhosts: ['denyhosts.conf'], desc: ['file.desc'], diff --git a/src/version.c b/src/version.c index 8eb32e6638..09a6b69eb9 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 */ +/**/ + 2024, /**/ 2023, /**/