vim-patch:9.0.1350: CPON files are not recognized (#22392)

Problem:    CPON files are not recognized.
Solution:   Add patterns for CPON files. (Amaan Qureshi, closes vim/vim#12053)

c2254764bc

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
Christian Clason 2023-02-24 15:34:52 +01:00 committed by GitHub
parent 1803dadb20
commit 4297127f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,7 @@ local extension = {
csh = function(path, bufnr)
return require('vim.filetype.detect').csh(path, bufnr)
end,
cpon = 'cpon',
moc = 'cpp',
hh = 'cpp',
tlh = 'cpp',

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'],
\ 'cpon': ['file.cpon'],
\ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'],
\ 'cqlang': ['file.cql'],
\ 'crm': ['file.crm'],