patch 9.1.2146: filetype: cel files are not recognized

Commit: 
https://github.com/vim/vim/commit/fb5777fa209785db6aa439b712cab814264e05ca
Author: Stefan VanBuren <[email protected]>
Date:   Thu Feb 12 18:22:42 2026 +0100

    patch 9.1.2146: filetype: cel files are not recognized
    
    Problem:  filetype: cel files are not recognized
    Solution: Detect *.cel files as cel filetype (Stefan VanBuren).
    
    Reference:
    https://cel.dev/
    
https://github.com/google/cel-java/blob/e36c49febc36bcb16ef4f07274fcc8873c1eee59/testing/src/test/resources/expressions/coverage_test_case/simple_expression.cel
    
https://github.com/elastic/mito/blob/d0d2dbabae5c563dd943c61fd52992acb655942d/example.cel
    
    closes: #19381
    
    Signed-off-by: Stefan VanBuren <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 188573f69..32f8fb6e2 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -1832,6 +1832,8 @@ const ft_from_ext = {
   "tlh": "cpp",
   # Cascading Style Sheets
   "css": "css",
+  # Common Expression Language (CEL) - https://cel.dev
+  "cel": "cel",
   # Century Term Command Scripts (*.cmd too)
   "con": "cterm",
   # ChordPro
diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt
index 3644d1760..87a702cfe 100644
--- a/runtime/doc/version9.txt
+++ b/runtime/doc/version9.txt
@@ -52553,4 +52553,8 @@ Patch 9.1.2145
 Problem:  intstalltutor Makefile target does not create the tutor/sv dir
 Solution: Add the missing mkdir() calls to the Makefile (Ross Burton)
 
+Patch 9.1.2146
+Problem:  filetype: cel files are not recognized
+Solution: Detect *.cel files as cel filetype (Stefan VanBuren).
+
  vim:tw=78:ts=8:noet:ft=help:norl:fdm=manual:nofoldenable
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 4bb92028a..8b59a3645 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -171,6 +171,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     cdrdaoconf: ['/etc/cdrdao.conf', '/etc/defaults/cdrdao', 
'/etc/default/cdrdao', '.cdrdao', 'any/etc/cdrdao.conf', 
'any/etc/default/cdrdao', 'any/etc/defaults/cdrdao'],
     cdrtoc: ['file.toc'],
     cedar: ['file.cedar'],
+    cel: ['file.cel'],
     cf: ['file.cfm', 'file.cfi', 'file.cfc'],
     cfengine: ['cfengine.conf'],
     cfg: ['file.hgrc', 'filehgrc', 'hgrc', 'some-hgrc'],
diff --git a/src/version.c b/src/version.c
index 0819639cb..963161df4 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 */
+/**/
+    2146,
 /**/
     2145,
 /**/

-- 
-- 
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/E1vqakS-008kpG-6v%40256bit.org.

Raspunde prin e-mail lui