patch 9.1.0307: filetype: texdoc config files is not recognized

Commit: 
https://github.com/vim/vim/commit/7fdbd1bb58192650bec067a0f224c1fa971c6782
Author: Wu, Zhenyu <wuzhe...@ustc.edu>
Date:   Thu Apr 11 20:53:33 2024 +0200

    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: #14507
    
    Signed-off-by: Wu, Zhenyu <wuzhe...@ustc.edu>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index a45d0620e..f17ac62a3 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index e04eb3561..89ccac984 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index a7a96644e..871252328 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    307,
 /**/
     306,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1ruzeW-004fKD-TG%40256bit.org.

Raspunde prin e-mail lui