patch 9.2.0217: filetype: cto files are not recognized
Commit:
https://github.com/vim/vim/commit/68f9dedba46b4e6625459d94342a2e2c7f5b17b7
Author: Jamie Shorten <[email protected]>
Date: Fri Mar 20 23:03:10 2026 +0000
patch 9.2.0217: filetype: cto files are not recognized
Problem: filetype: cto files are not recognized
Solution: Detect *.cto as concerto filetype (Jamie Shorten)
Add filetype detection for the Concerto Modelling Language. Concerto
is a schema language by the Accord Project for defining data models
used in smart legal contracts and business networks.
Reference:
Language spec: https://concerto.accordproject.org
Tree-sitter grammar: https://github.com/accordproject/concerto-tree-sitter
closes: #19760
Signed-off-by: Jamie Shorten <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index dffbf355f..5b54b1c47 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 19
+# Last Change: 2026 Mar 20
# Former Maintainer: Bram Moolenaar <[email protected]>
# These functions are moved here from runtime/filetype.vim to make startup
@@ -1888,6 +1888,8 @@ const ft_from_ext = {
"cr": "crystal",
# CSV Files
"csv": "csv",
+ # Concertor
+ "cto": "concerto",
# CUDA Compute Unified Device Architecture
"cu": "cuda",
"cuh": "cuda",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 58e5de13d..e13e6c4fa 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -194,6 +194,7 @@ def s:GetFilenameChecks(): dict<list<string>>
coco: ['file.atg'],
codeowners: ['CODEOWNERS'],
conaryrecipe: ['file.recipe'],
+ concerto: ['file.cto'],
conf: ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc', '.chktexrc',
'.ripgreprc', 'ripgreprc', 'file.ctags'],
config: ['/etc/hostname.file', 'any/etc/hostname.file', 'configure.in',
'configure.ac', 'file.at', 'aclocal.m4'],
confini: ['pacman.conf', 'paru.conf', 'mpv.conf', 'any/.aws/config',
'any/.aws/credentials', 'any/.aws/cli/alias', 'file.nmconnection',
diff --git a/src/version.c b/src/version.c
index 425834a43..d1bae5a5b 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 */
+/**/
+ 217,
/**/
216,
/**/
--
--
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/E1w3j3X-00FQoN-Pv%40256bit.org.