diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-24 12:08:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-24 12:08:45 +0000 |
commit | c2254764bcada43eea894eb5852a26d5ac5ca8b0 (patch) | |
tree | 4192fe86fb7bc7bdeb52f4e8e995966e00fa3a05 | |
parent | 3ddb1182b7b8d376e59b444f6b3e213f0dcd3417 (diff) | |
download | vim-git-c2254764bcada43eea894eb5852a26d5ac5ca8b0.tar.gz |
patch 9.0.1350: CPON files are not recognizedv9.0.1350
Problem: CPON files are not recognized.
Solution: Add patterns for CPON files. (Amaan Qureshi, closes #12053)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 99a90bafc..1efa46b43 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -310,6 +310,9 @@ au BufNewFile,BufRead *.cdl setf cdl " Conary Recipe au BufNewFile,BufRead *.recipe setf conaryrecipe +" ChainPack Object Notation (CPON) +au BufNewFile,BufRead *.cpon setf cpon + " Controllable Regex Mutilator au BufNewFile,BufRead *.crm setf crm diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d40e2e94a..b8dc6ee22 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -124,6 +124,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'], diff --git a/src/version.c b/src/version.c index d9fb76410..f4dbd1677 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1350, +/**/ 1349, /**/ 1348, |