]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0987: filetype: cake files are not recognized v9.1.0987
authorZoe Roux <zoe.roux@zoriya.dev>
Fri, 3 Jan 2025 09:40:31 +0000 (10:40 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 3 Jan 2025 09:40:31 +0000 (10:40 +0100)
Problem:  filetype: cake files are not recognized
Solution: detect '*.cake' files as cs filetype
          (Zoe Roux)

References:
https://cakebuild.net/

closes: #16367

Signed-off-by: Zoe Roux <zoe.roux@zoriya.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 4d7205f35752e5216769acf8ca7ef33089bf9581..ac77cbbb94a6153d3417da9165c4bfd79d48685f 100644 (file)
@@ -342,7 +342,7 @@ au BufNewFile,BufRead *.capnp                       setf capnp
 au BufNewFile,BufRead cgdbrc                   setf cgdbrc
 
 " C#
-au BufNewFile,BufRead *.cs,*.csx               setf cs
+au BufNewFile,BufRead *.cs,*.csx,*.cake                setf cs
 
 " CSDL
 au BufNewFile,BufRead *.csdl                   setf csdl
index 59a916124cfb1febf6af8f9d27c5a9cebc356a72..54f038578e3559cea3cf8b31367cc2f5b46afe84 100644 (file)
@@ -196,7 +196,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     crm: ['file.crm'],
     crontab: ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'],
     crystal: ['file.cr'],
-    cs: ['file.cs', 'file.csx'],
+    cs: ['file.cs', 'file.csx', 'file.cake'],
     csc: ['file.csc'],
     csdl: ['file.csdl'],
     csp: ['file.csp', 'file.fdr'],
index 97c14887ed3772906201dced75c22e1ee0fbf075..1dbbca5631db97f6ddea9bccef9d0e34cc79f7b2 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    987,
 /**/
     986,
 /**/