commit fa298fd2f4b0c46df434938cbc17467e263cc094
parent b365036ab3f5e91439a5397ed0f32b651d60f08c
Author: Christian Clason <c.clason@uni-graz.at>
Date: Fri, 3 Jan 2025 10:46:22 +0100
vim-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: vim/vim#16367
https://github.com/vim/vim/commit/a407573f30a978b3aa61532bbd9b0ae94a87dc32
Co-authored-by: Zoe Roux <zoe.roux@zoriya.dev>
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -353,6 +353,7 @@ local extension = {
cql = 'cqlang',
crm = 'crm',
cr = 'crystal',
+ cake = 'cs',
csx = 'cs',
cs = 'cs',
csc = 'csc',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -195,7 +195,7 @@ func s:GetFilenameChecks() abort
\ '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'],