patch 9.1.0796: filetype: libtool files are not recognized

Commit: 
https://github.com/vim/vim/commit/bfe568d8c49662c3a3485834066c0a4c32ded56b
Author: Wu, Zhenyu <wuzhe...@ustc.edu>
Date:   Mon Oct 21 22:09:32 2024 +0200

    patch 9.1.0796: filetype: libtool files are not recognized
    
    Problem:  filetype: libtool files are not recognized
    Solution: detect '*.{lo,la,lai}' as sh filetype
              (Wu, Zhenyu)
    
    closes: #15751
    
    Signed-off-by: Wu, Zhenyu <wuzhe...@ustc.edu>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index e68448d50..29dbc4b29 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
 
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 6b1574ecb..4348cd191 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 6d7ef0324..e979c0456 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    796,
 /**/
     795,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1t2ynx-00FYXx-C4%40256bit.org.

Raspunde prin e-mail lui