mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
vim-patch:9.1.0244: filetype: bash history files are not recognized
Problem: filetype: bash history files are not recognized
Solution: detect .bash-history and .bash_history files as bash
(Wu, Zhenyu)
closes: vim/vim#14365
84ce55001a
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
1a0b27965c
commit
239101e32a
@ -1953,6 +1953,7 @@ local pattern = {
|
|||||||
['.*/etc/serial%.conf'] = 'setserial',
|
['.*/etc/serial%.conf'] = 'setserial',
|
||||||
['.*/etc/udev/cdsymlinks%.conf'] = 'sh',
|
['.*/etc/udev/cdsymlinks%.conf'] = 'sh',
|
||||||
['%.bash[_%-]aliases'] = detect.bash,
|
['%.bash[_%-]aliases'] = detect.bash,
|
||||||
|
['%.bash[_%-]history'] = detect.bash,
|
||||||
['%.bash[_%-]logout'] = detect.bash,
|
['%.bash[_%-]logout'] = detect.bash,
|
||||||
['%.bash[_%-]profile'] = detect.bash,
|
['%.bash[_%-]profile'] = detect.bash,
|
||||||
['%.kshrc.*'] = detect.ksh,
|
['%.kshrc.*'] = detect.ksh,
|
||||||
|
@ -582,7 +582,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'services': ['/etc/services', 'any/etc/services'],
|
\ 'services': ['/etc/services', 'any/etc/services'],
|
||||||
\ 'setserial': ['/etc/serial.conf', 'any/etc/serial.conf'],
|
\ 'setserial': ['/etc/serial.conf', 'any/etc/serial.conf'],
|
||||||
\ 'sexplib': ['file.sexp'],
|
\ 'sexplib': ['file.sexp'],
|
||||||
\ 'sh': ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', '.bash-logout', '.bash_aliases', '.bash-aliases', '/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'],
|
\ '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'],
|
||||||
\ '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