]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4721: cooklang files are not recognized v8.2.4721
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Sat, 9 Apr 2022 15:08:08 +0000 (16:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 9 Apr 2022 15:08:08 +0000 (16:08 +0100)
Problem:    Cooklang files are not recognized.
Solution:   recognize *.cook files. (Goc Dundar, closes #10120)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 2e87abcd4569484824c678e62ccf55d5945f3456..62afb375cba441ca764726935aa235991d27e30e 100644 (file)
@@ -394,6 +394,9 @@ au BufNewFile,BufRead *.cfm,*.cfi,*.cfc             setf cf
 " Configure scripts
 au BufNewFile,BufRead configure.in,configure.ac setf config
 
+" Cooklang
+au BufNewFile,BufRead *.cook                   setf cook
+
 " CUDA Compute Unified Device Architecture
 au BufNewFile,BufRead *.cu,*.cuh               setf cuda
 
index bb079476fd1813b588d2d86679cdf78c4792c6fc..7a91cef8c9c1d1f274ca78593e7503a21d48fd68 100644 (file)
@@ -116,6 +116,7 @@ let s:filename_checks = {
     \ 'conf': ['auto.master'],
     \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file'],
     \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
+    \ 'cook': ['file.cook'],
     \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
     \ 'crm': ['file.crm'],
     \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'],
index be3b6693c187cfb2ddc0523e697d0244755b9436..1b2a1886b081af74b3817c5f50feb330830ccfd4 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4721,
 /**/
     4720,
 /**/