]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0596: filetype: devscripts config files are not recognized v9.1.0596
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Wed, 17 Jul 2024 18:18:10 +0000 (20:18 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 17 Jul 2024 18:18:10 +0000 (20:18 +0200)
Problem:  filetype: Debian devscripts config files are not recognized
Solution: detect devscripts.conf and .devscripts files as sh filetype
          (sourced by /bin/sh)

closes: #15227

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 2ec0589b53e6519e4ab30a7e6012fe70bb3204a2..6275e0aa5a2c3d0a47bb6c587bf0bb518409a04d 100644 (file)
@@ -510,6 +510,9 @@ au BufNewFile,BufRead *.cu,*.cuh            setf cuda
 " Cue
 au BufNewFile,BufRead *.cue                    setf cue
 
+" Debian devscripts
+au BufNewFile,BufRead devscripts.conf,.devscripts      setf sh
+
 " Dockerfile; Podman uses the same syntax with name Containerfile
 " Also see Dockerfile.* below.
 au BufNewFile,BufRead Containerfile,Dockerfile,dockerfile,*.[dD]ockerfile      setf dockerfile
index c3c0139c2b443004e23410d78b9d7987a7dc88dd..24948a20c9198cfe6cffff94b094014c1f37eec9 100644 (file)
@@ -652,7 +652,8 @@ def s:GetFilenameChecks(): dict<list<string>>
     sh: ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', '.bash-logout', '.bash_aliases', '.bash-aliases', '.bash_history', '.bash-history',
          '/tmp/bash-fc-3Ozjlw', '/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 'APKBUILD', 'file.bash', '/usr/share/doc/bash-completion/filter.sh',
          '/etc/udev/cdsymlinks.conf', 'any/etc/udev/cdsymlinks.conf', 'file.bats', '.ash_history', 'any/etc/neofetch/config.conf', '.xprofile',
-         'user-dirs.defaults', 'user-dirs.dirs', 'makepkg.conf', '.makepkg.conf', 'file.mdd', 'file.cygport', '.env', '.envrc'],
+         'user-dirs.defaults', 'user-dirs.dirs', 'makepkg.conf', '.makepkg.conf', 'file.mdd', 'file.cygport', '.env', '.envrc', 'devscripts.conf',
+         '.devscripts'],
     sieve: ['file.siv', 'file.sieve'],
     sil: ['file.sil'],
     simula: ['file.sim'],
index 5cff0a3d6ee4f73ab120e2e959dbd2b92f5b3ec0..e989d6e7c07212d6e5a48a47558b15f11cb171ac 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    596,
 /**/
     595,
 /**/