patch 9.1.0902: filetype: Conda configuration files are not recognized

Problem:  filetype: Conda configuration files are not recognized
Solution: detect '.condarc' and 'condarc' files as yaml filetype.
          (zeertzjq)

closes: #16162

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-12-03 20:43:52 +01:00
committed by Christian Brabandt
parent b534e80008
commit 876de275cb
3 changed files with 6 additions and 1 deletions

View File

@ -452,6 +452,9 @@ au BufNewFile,BufRead .clang-format setf yaml
" Clang-tidy
au BufNewFile,BufRead .clang-tidy setf yaml
" Conda configuration file
au BufNewFile,BufRead .condarc,condarc setf yaml
" Matplotlib
au BufNewFile,BufRead *.mplstyle,matplotlibrc setf yaml

View File

@ -889,7 +889,7 @@ def s:GetFilenameChecks(): dict<list<string>>
xslt: ['file.xsl', 'file.xslt'],
yacc: ['file.yy', 'file.yxx', 'file.y++'],
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
'/home/user/.kube/config'],
'/home/user/.kube/config', '.condarc', 'condarc'],
yang: ['file.yang'],
yuck: ['file.yuck'],
z8a: ['file.z8a'],

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
902,
/**/
901,
/**/