Mercurial > vim
changeset 36350:fa8e63b4be53 draft v9.1.0796
patch 9.1.0796: filetype: libtool files are not recognized
Commit: https://github.com/vim/vim/commit/bfe568d8c49662c3a3485834066c0a4c32ded56b
Author: Wu, Zhenyu <wuzhenyu@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 <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 21 Oct 2024 22:15:05 +0200 |
parents | 8dce37264e96 |
children | 8c4caf0db96d |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -570,6 +570,9 @@ au BufNewFile,BufRead *.dsp call dist 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
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -673,7 +673,7 @@ def s:GetFilenameChecks(): dict<list<str '/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'],