changeset 32037:1171d97f415d v9.0.1350

patch 9.0.1350: CPON files are not recognized Commit: https://github.com/vim/vim/commit/c2254764bcada43eea894eb5852a26d5ac5ca8b0 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Fri Feb 24 12:08:45 2023 +0000 patch 9.0.1350: CPON files are not recognized Problem: CPON files are not recognized. Solution: Add patterns for CPON files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12053)
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 Feb 2023 13:15:04 +0100
parents d4f3ac9bfb83
children b6cb7f0da99f
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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'],
--- 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,