diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-05-29 10:25:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-29 10:25:05 +0200 |
commit | b8a2220f5eb32ead6b66f7c49b7e915883bf3539 (patch) | |
tree | 1efc7546d083d1c7b999ac938931886dacb3739d | |
parent | 9dd48f7832f4656af4a2579368641268bb6399e7 (diff) | |
download | rneovim-b8a2220f5eb32ead6b66f7c49b7e915883bf3539.tar.gz rneovim-b8a2220f5eb32ead6b66f7c49b7e915883bf3539.tar.bz2 rneovim-b8a2220f5eb32ead6b66f7c49b7e915883bf3539.zip |
vim-patch:9.0.1587: Corn config files are not recognized (#23807)
Problem: Corn config files are not recognized.
Solution: Add a pattern for Corn config files. (Jake Stanger, closes vim/vim#12449)
https://github.com/vim/vim/commit/05843e89601c03389a2d7978e7e16aec641a3dc4
Co-authored-by: Jake Stanger <mail@jstanger.dev>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 57df621153..6990de3391 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -241,6 +241,7 @@ local extension = { copyright = function(path, bufnr) return require('vim.filetype.detect').copyright(bufnr) end, + corn = 'corn', csh = function(path, bufnr) return require('vim.filetype.detect').csh(path, bufnr) end, diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 9ee9a1862e..effb67a3df 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -126,6 +126,7 @@ let s:filename_checks = { \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'], \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], \ 'cook': ['file.cook'], + \ 'corn': ['file.corn'], \ 'cpon': ['file.cpon'], \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m'], \ 'cqlang': ['file.cql'], |