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

a407573f30

Co-authored-by: Zoe Roux <zoe.roux@zoriya.dev>
This commit is contained in:
Christian Clason 2025-01-03 10:46:22 +01:00 committed by Christian Clason
parent b365036ab3
commit fa298fd2f4
2 changed files with 2 additions and 1 deletions

View File

@ -353,6 +353,7 @@ local extension = {
cql = 'cqlang', cql = 'cqlang',
crm = 'crm', crm = 'crm',
cr = 'crystal', cr = 'crystal',
cake = 'cs',
csx = 'cs', csx = 'cs',
cs = 'cs', cs = 'cs',
csc = 'csc', csc = 'csc',

View File

@ -195,7 +195,7 @@ func s:GetFilenameChecks() abort
\ 'crm': ['file.crm'], \ 'crm': ['file.crm'],
\ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'], \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'],
\ 'crystal': ['file.cr'], \ 'crystal': ['file.cr'],
\ 'cs': ['file.cs', 'file.csx'], \ 'cs': ['file.cs', 'file.csx', 'file.cake'],
\ 'csc': ['file.csc'], \ 'csc': ['file.csc'],
\ 'csdl': ['file.csdl'], \ 'csdl': ['file.csdl'],
\ 'csp': ['file.csp', 'file.fdr'], \ 'csp': ['file.csp', 'file.fdr'],