diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-10-14 16:04:57 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-10-14 16:41:33 +0200 |
commit | 729a9c4c61c13db80d42e6d875893b4a79ef4381 (patch) | |
tree | eb83df87397d717ec37b7c0c678c7d2f6e11891b | |
parent | af4985feda008f409939671b749c26cb7401c2ea (diff) | |
download | rneovim-729a9c4c61c13db80d42e6d875893b4a79ef4381.tar.gz rneovim-729a9c4c61c13db80d42e6d875893b4a79ef4381.tar.bz2 rneovim-729a9c4c61c13db80d42e6d875893b4a79ef4381.zip |
vim-patch:9.0.2024: no filetype detection for Debian sources
Problem: no filetype detection for Debian sources
Solution: Add new deb822sources filetype
closes: vim/vim#13320
https://github.com/vim/vim/commit/bd734c3bead9e167eb6875f62cc06fab2379c422
Co-authored-by: James McCoy <jamessan@jamessan.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index b2fbea5405..2058a4dcba 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1629,6 +1629,7 @@ local pattern = { ['.*/debian/copyright'] = 'debcopyright', ['.*/etc/apt/sources%.list%.d/.*%.list'] = 'debsources', ['.*/etc/apt/sources%.list'] = 'debsources', + ['.*/etc/apt/sources%.list%.d/.*%.sources'] = 'deb822sources', ['.*%.directory'] = 'desktop', ['.*%.desktop'] = 'desktop', ['dictd.*%.conf'] = 'dictdconf', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 321a6cbef8..d351e2ffc7 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -184,6 +184,7 @@ func s:GetFilenameChecks() abort \ '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'], |