patch 9.2.0204: filetype: cps files are not recognized

Commit: 
https://github.com/vim/vim/commit/53884ba7a8fb22de006689a6feb88fb8f0bd7db9
Author: Guillaume Barbier <[email protected]>
Date:   Thu Mar 19 20:24:40 2026 +0000

    patch 9.2.0204: filetype: cps files are not recognized
    
    Problem:  filetype: cps files are not recognized
    Solution: Detect *.cps files as json filetype (Guillaume Barbier).
    
    Reference:
    https://github.com/cps-org/cps
    https://cps-org.github.io/cps/
    
    closes: #19758
    
    Signed-off-by: Guillaume Barbier <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index a90655feb..dffbf355f 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
 # Vim functions for file type detection
 #
 # Maintainer:          The Vim Project <https://github.com/vim/vim>
-# Last Change:         2026 Mar 13
+# Last Change:         2026 Mar 19
 # Former Maintainer:   Bram Moolenaar <[email protected]>
 
 # These functions are moved here from runtime/filetype.vim to make startup
@@ -1789,6 +1789,8 @@ const ft_from_ext = {
   "cairo": "cairo",
   # Cap'n Proto
   "capnp": "capnp",
+  # Common Package Specification
+  "cps": "json",
   # C#
   "cs": "cs",
   "csx": "cs",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 735b58124..58e5de13d 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -419,7 +419,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     jovial: ['file.jov', 'file.j73', 'file.jovial'],
     jproperties: ['file.properties', 'file.properties_xx', 
'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
     jq: ['file.jq'],
-    json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 
'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings',
+    json: ['file.json', 'file.jsonp', 'file.json-patch', 'file.geojson', 
'file.webmanifest', 'Pipfile.lock', 'file.ipynb', 'file.jupyterlab-settings', 
'file.cps',
     '.prettierrc', '.firebaserc', '.stylelintrc', '.lintstagedrc', 
'file.slnf', 'file.sublime-project', 'file.sublime-settings', 
'file.sublime-workspace',
     'file.bd', 'file.bda', 'file.xci', 'flake.lock', 'pack.mcmeta', 
'deno.lock', '.swcrc', 'composer.lock', 'symfony.lock'],
     json5: ['file.json5'],
diff --git a/src/version.c b/src/version.c
index a93d22413..1463ac6a6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    204,
 /**/
     203,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1w3K0O-00DddU-4u%40256bit.org.

Raspunde prin e-mail lui