]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0902: filetype: Conda configuration files are not recognized v9.1.0902
authorzeertzjq <zeertzjq@outlook.com>
Tue, 3 Dec 2024 19:43:52 +0000 (20:43 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 3 Dec 2024 19:45:34 +0000 (20:45 +0100)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index f91d405f7dc263b943526a8fa433aca40a450319..2c46c57b1ef83cb99c01850decfc42353b53cc7f 100644 (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
 
index 51f4dc1c898067fbe0eb328781c04d33045b6fbb..ef1d8b57e73e909c412d6e37b99d383d98c079ed 100644 (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'],
index 724fa614021af813229af9c1a0f4b9b706006c51..5a9f50f6ee0e6669c24a0a0870ef68c62dd97db0 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    902,
 /**/
     901,
 /**/