mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim-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: vim/vim#15751
bfe568d8c4
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
b7779aad41
commit
a6d1165771
@ -1068,6 +1068,9 @@ local extension = {
|
|||||||
envrc = detect.sh,
|
envrc = detect.sh,
|
||||||
ksh = detect.ksh,
|
ksh = detect.ksh,
|
||||||
sh = detect.sh,
|
sh = detect.sh,
|
||||||
|
lo = 'sh',
|
||||||
|
la = 'sh',
|
||||||
|
lai = 'sh',
|
||||||
mdd = 'sh',
|
mdd = 'sh',
|
||||||
sieve = 'sieve',
|
sieve = 'sieve',
|
||||||
siv = 'sieve',
|
siv = 'sieve',
|
||||||
|
@ -671,7 +671,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ '/tmp/bash-fc-3Ozjlw', '/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 'APKBUILD', 'file.bash', '/usr/share/doc/bash-completion/filter.sh',
|
\ '/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',
|
\ '/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',
|
\ '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'],
|
\ 'sieve': ['file.siv', 'file.sieve'],
|
||||||
\ 'sil': ['file.sil'],
|
\ 'sil': ['file.sil'],
|
||||||
\ 'simula': ['file.sim'],
|
\ 'simula': ['file.sim'],
|
||||||
|
Loading…
Reference in New Issue
Block a user