mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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
bd734c3bea
Co-authored-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
@@ -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',
|
||||
|
@@ -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'],
|
||||
|
Reference in New Issue
Block a user