neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 729a9c4c61c13db80d42e6d875893b4a79ef4381
parent af4985feda008f409939671b749c26cb7401c2ea
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Sat, 14 Oct 2023 16:04:57 +0200

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>

Diffstat:
Mruntime/lua/vim/filetype.lua | 1+
Mtest/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 @@ -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 @@ -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'],