changeset 28393:860c2c6bcdfd v8.2.4721

patch 8.2.4721: cooklang files are not recognized Commit: https://github.com/vim/vim/commit/36951ed1dab2b2e816dc8959c72b5732f36d9e3b Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sat Apr 9 16:08:08 2022 +0100 patch 8.2.4721: cooklang files are not recognized Problem: Cooklang files are not recognized. Solution: recognize *.cook files. (Goc Dundar, closes https://github.com/vim/vim/issues/10120)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Apr 2022 17:15:03 +0200
parents f77b9d4cb007
children c7353962787c
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -394,6 +394,9 @@ au BufNewFile,BufRead *.cfm,*.cfi,*.cfc	
 " 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
 
--- 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'],
--- 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,