patch 9.1.0987: filetype: cake files are not recognized

Commit: 
https://github.com/vim/vim/commit/a407573f30a978b3aa61532bbd9b0ae94a87dc32
Author: Zoe Roux <zoe.r...@zoriya.dev>
Date:   Fri Jan 3 10:40:31 2025 +0100

    patch 9.1.0987: filetype: cake files are not recognized
    
    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.r...@zoriya.dev>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 4d7205f35..ac77cbbb9 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 59a916124..54f038578 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index 97c14887e..1dbbca563 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 */
+/**/
+    987,
 /**/
     986,
 /**/

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1tTeEr-004cCx-3m%40256bit.org.

Raspunde prin e-mail lui