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)

05843e8960

Co-authored-by: Jake Stanger <mail@jstanger.dev>
This commit is contained in:
Christian Clason 2023-05-29 10:25:05 +02:00 committed by GitHub
parent 9dd48f7832
commit b8a2220f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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'],