mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
vim-patch:9.1.0307: filetype: texdoc config files is not recognized
Problem: filetype: texdoc config files is not recognized
Solution: Detect 'texdoc.cnf' as conf filetype
(Wu, Zhenyu)
See: https://github.com/TeX-Live/texdoc/blob/master/texdoc.cnf
closes: vim/vim#14507
7fdbd1bb58
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
be7d8ff0e4
commit
8c112a8235
@ -1302,6 +1302,7 @@ local filename = {
|
|||||||
['csh.login'] = detect.csh,
|
['csh.login'] = detect.csh,
|
||||||
['csh.logout'] = detect.csh,
|
['csh.logout'] = detect.csh,
|
||||||
['auto.master'] = 'conf',
|
['auto.master'] = 'conf',
|
||||||
|
['texdoc.cnf'] = 'conf',
|
||||||
['.x11vncrc'] = 'conf',
|
['.x11vncrc'] = 'conf',
|
||||||
['configure.in'] = 'config',
|
['configure.in'] = 'config',
|
||||||
['configure.ac'] = 'config',
|
['configure.ac'] = 'config',
|
||||||
|
@ -163,7 +163,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'cobol': ['file.cbl', 'file.cob', 'file.lib'],
|
\ 'cobol': ['file.cbl', 'file.cob', 'file.lib'],
|
||||||
\ 'coco': ['file.atg'],
|
\ 'coco': ['file.atg'],
|
||||||
\ 'conaryrecipe': ['file.recipe'],
|
\ 'conaryrecipe': ['file.recipe'],
|
||||||
\ 'conf': ['auto.master', 'file.conf', '.x11vncrc'],
|
\ 'conf': ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc'],
|
||||||
\ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
|
\ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
|
||||||
\ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
|
\ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
|
||||||
\ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
|
\ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
|
||||||
|
Loading…
Reference in New Issue
Block a user