1
0
forked from aniani/vim

patch 9.1.0886: filetype: debian control file not detected

Problem:  filetype: debian control file not detected
Solution: detect 'debian/control' files as debcontrol filetype
          (author)

closes: #16067

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: James McCoy <jamessan@debian.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Wu, Zhenyu
2024-11-24 14:34:01 +01:00
committed by Christian Brabandt
parent c1e6621a59
commit 57b947e3c3
3 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
" Last Change: 2024 Nov 19
" Last Change: 2024 Nov 24
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Listen very carefully, I will say this only once
@@ -646,9 +646,9 @@ au BufNewFile,BufRead *.dfy setf dafny
au BufRead,BufNewfile *.dart,*.drt setf dart
" Debian Control
au BufNewFile,BufRead */debian/control setf debcontrol
au BufNewFile,BufRead */{debian,DEBIAN}/control setf debcontrol
au BufNewFile,BufRead control
\ if getline(1) =~ '^Source:'
\ if getline(1) =~ '^Source:\|^Package:'
\| setf debcontrol
\| endif