]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0796: filetype: libtool files are not recognized v9.1.0796
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Mon, 21 Oct 2024 20:09:32 +0000 (22:09 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 21 Oct 2024 20:09:32 +0000 (22:09 +0200)
Problem:  filetype: libtool files are not recognized
Solution: detect '*.{lo,la,lai}' as sh filetype
          (Wu, Zhenyu)

closes: #15751

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 e68448d509c94f83bad6d876c35825f3313f549a..29dbc4b290b4670f69fabce9b6c32e28209cb23c 100644 (file)
@@ -570,6 +570,9 @@ au BufNewFile,BufRead *.dsp                         call dist#ft#FTdsp()
 au BufNewFile,BufRead *.xcu,*.xlb,*.xlc,*.xba          setf xml
 au BufNewFile,BufRead psprint.conf,sofficerc           setf dosini
 
+" Libtool files
+au BufNewFile,BufRead *.lo,*.la,*.lai          setf sh
+
 " Lynx config files
 au BufNewFile,BufRead lynx.cfg                 setf lynx
 
index 6b1574ecba69c2533019192cff9933507cb2b86d..4348cd19183c48697e6848e1c85ad607bdd4ae08 100644 (file)
@@ -673,7 +673,7 @@ def s:GetFilenameChecks(): dict<list<string>>
          '/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', 'devscripts.conf',
-         '.devscripts'],
+         '.devscripts', 'file.lo', 'file.la', 'file.lai'],
     sieve: ['file.siv', 'file.sieve'],
     sil: ['file.sil'],
     simula: ['file.sim'],
index 6d7ef0324926319ec23d3ae2794ecdd1aed4ae21..e979c04563fdc852b34eeb6b269380a59e5972f0 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    796,
 /**/
     795,
 /**/