]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2146: filetype: cel files are not recognized v9.1.2146
authorStefan VanBuren <svanburen@buf.build>
Thu, 12 Feb 2026 17:22:42 +0000 (18:22 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 12 Feb 2026 17:25:59 +0000 (18:25 +0100)
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 <svanburen@buf.build>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
runtime/doc/version9.txt
src/testdir/test_filetype.vim
src/version.c

index 188573f6908b5d91fcca2e77692c87244a0a51f4..32f8fb6e2f984d06049426e75eef1f42e7908af9 100644 (file)
@@ -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
index 3644d1760222ec04359ef37f976b18fed283d185..87a702cfec8e4a4d380f796d5a4d281416f657ee 100644 (file)
@@ -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
index 4bb92028aebbdedf43b431aed85fd33df6b194ac..8b59a36458aa1ee4304e70e5f7fa1ec3674dacb6 100644 (file)
@@ -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'],
index 0819639cbc17907faf15c43e4b9227c1dca1a05a..963161df4f5a70705368aaff790e8276533b2271 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2146,
 /**/
     2145,
 /**/