summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-04-09 16:08:08 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-09 16:08:08 +0100
commit36951ed1dab2b2e816dc8959c72b5732f36d9e3b (patch)
treeb0aca49b38a90393f7812cb26143bfec48d6fbcd
parentb09c320039ad49e62d2e2d7f14ba47ee3ca0706a (diff)
downloadvim-git-36951ed1dab2b2e816dc8959c72b5732f36d9e3b.tar.gz
patch 8.2.4721: cooklang files are not recognizedv8.2.4721
Problem: Cooklang files are not recognized. Solution: recognize *.cook files. (Goc Dundar, closes #10120)
-rw-r--r--runtime/filetype.vim3
-rw-r--r--src/testdir/test_filetype.vim1
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 2e87abcd4..62afb375c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index bb079476f..7a91cef8c 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index be3b6693c..1b2a1886b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4721,
+/**/
4720,
/**/
4719,