mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.1.0311: filetype: Some config files are not recognized
Problem: Some config files are not recognized Solution: Add some patterns for chktex, ripgreprc and ctags config files. See: https://www.nongnu.org/chktex/ See: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file See: https://docs.ctags.io/en/latest/option-file.html#order-of-loading-option-files closes: #14506 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
9232554087
commit
a1dcd76ce7
@@ -308,6 +308,9 @@ au BufNewFile,BufRead *.cs,*.csx setf cs
|
|||||||
" CSDL
|
" CSDL
|
||||||
au BufNewFile,BufRead *.csdl setf csdl
|
au BufNewFile,BufRead *.csdl setf csdl
|
||||||
|
|
||||||
|
" Ctags
|
||||||
|
au BufNewFile,BufRead *.ctags setf conf
|
||||||
|
|
||||||
" Cabal
|
" Cabal
|
||||||
au BufNewFile,BufRead *.cabal setf cabal
|
au BufNewFile,BufRead *.cabal setf cabal
|
||||||
|
|
||||||
@@ -327,6 +330,9 @@ au BufRead,BufNewFile *.chai setf chaiscript
|
|||||||
" Chatito
|
" Chatito
|
||||||
au BufNewFile,BufRead *.chatito setf chatito
|
au BufNewFile,BufRead *.chatito setf chatito
|
||||||
|
|
||||||
|
" Chktex
|
||||||
|
au BufRead,BufNewFile .chktexrc setf conf
|
||||||
|
|
||||||
" Chuck
|
" Chuck
|
||||||
au BufNewFile,BufRead *.ck setf chuck
|
au BufNewFile,BufRead *.ck setf chuck
|
||||||
|
|
||||||
@@ -1863,6 +1869,9 @@ au BufNewFile,BufRead *.rego setf rego
|
|||||||
" Rexx
|
" Rexx
|
||||||
au BufNewFile,BufRead *.rex,*.orx,*.rxo,*.rxj,*.jrexx,*.rexxj,*.rexx,*.testGroup,*.testUnit setf rexx
|
au BufNewFile,BufRead *.rex,*.orx,*.rxo,*.rxj,*.jrexx,*.rexxj,*.rexx,*.testGroup,*.testUnit setf rexx
|
||||||
|
|
||||||
|
" Ripgrep rc
|
||||||
|
au BufNewFile,BufRead {.,}ripgreprc setf conf
|
||||||
|
|
||||||
" R Help file
|
" R Help file
|
||||||
if has("fname_case")
|
if has("fname_case")
|
||||||
au BufNewFile,BufRead *.rd,*.Rd setf rhelp
|
au BufNewFile,BufRead *.rd,*.Rd setf rhelp
|
||||||
|
@@ -162,7 +162,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
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', 'texdoc.cnf', '.x11vncrc'],
|
conf: ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc', '.chktexrc', '.ripgreprc', 'ripgreprc', 'file.ctags'],
|
||||||
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'],
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
311,
|
||||||
/**/
|
/**/
|
||||||
310,
|
310,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user