diff options
author | Christian Clason <c.clason@uni-graz.at> | 2025-01-03 10:46:22 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2025-01-03 11:45:21 +0100 |
commit | fa298fd2f4b0c46df434938cbc17467e263cc094 (patch) | |
tree | 58b364ff5c6c7ac5cf648e18982cf71402751081 | |
parent | b365036ab3f5e91439a5397ed0f32b651d60f08c (diff) | |
download | rneovim-fa298fd2f4b0c46df434938cbc17467e263cc094.tar.gz rneovim-fa298fd2f4b0c46df434938cbc17467e263cc094.tar.bz2 rneovim-fa298fd2f4b0c46df434938cbc17467e263cc094.zip |
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>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 849bc4af92..b6d6906589 100644 --- 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 index d5853adf49..685f700130 100644 --- 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'], |