From: Stefan VanBuren Date: Thu, 12 Feb 2026 17:22:42 +0000 (+0100) Subject: patch 9.1.2146: filetype: cel files are not recognized X-Git-Tag: v9.1.2146^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb5777fa209785db6aa439b712cab814264e05ca;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 188573f690..32f8fb6e2f 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 3644d17602..87a702cfec 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 4bb92028ae..8b59a36458 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -171,6 +171,7 @@ def s:GetFilenameChecks(): dict> 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 0819639cbc..963161df4f 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, /**/