]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0307: filetype: texdoc config files is not recognized v9.1.0307
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Thu, 11 Apr 2024 18:53:33 +0000 (20:53 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 11 Apr 2024 18:53:33 +0000 (20:53 +0200)
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: #14507

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index a45d0620e79a255308e5a643fdf5383e2e0bd58f..f17ac62a3cba789b26f5ed97c9c12a8773c9df06 100644 (file)
@@ -2355,6 +2355,7 @@ au BufRead,BufNewFile *.tfvars                    setf terraform-vars
 " TeX
 au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl  setf tex
 au BufNewFile,BufRead *.tex                    call dist#ft#FTtex()
+au BufNewFile,BufRead texdoc.cnf               setf conf
 
 " LaTeX packages will generate some medium LaTeX files during compiling
 " They should be ignored by .gitignore https://github.com/github/gitignore/blob/main/TeX.gitignore
index e04eb35618ffad36fc0f46a796031b1bbf23155f..89ccac98428244dea65a6547de5f7d4ce3a1e632 100644 (file)
@@ -162,7 +162,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     cobol: ['file.cbl', 'file.cob', 'file.lib'],
     coco: ['file.atg'],
     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'],
     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'],
index a7a96644e288402e7fe15f897f9c67422d7f387f..8712523285c6a048de5671964b9ef32f45fc426b 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    307,
 /**/
     306,
 /**/