Skip to content

Commit fb5777f

Browse files
stefanvanburenchrisbra
authored andcommitted
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]>
1 parent 56033b9 commit fb5777f

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

runtime/autoload/dist/ft.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,6 +1832,8 @@ const ft_from_ext = {
18321832
"tlh": "cpp",
18331833
# Cascading Style Sheets
18341834
"css": "css",
1835+
# Common Expression Language (CEL) - https://cel.dev
1836+
"cel": "cel",
18351837
# Century Term Command Scripts (*.cmd too)
18361838
"con": "cterm",
18371839
# ChordPro

runtime/doc/version9.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52553,4 +52553,8 @@ Patch 9.1.2145
5255352553
Problem: intstalltutor Makefile target does not create the tutor/sv dir
5255452554
Solution: Add the missing mkdir() calls to the Makefile (Ross Burton)
5255552555

52556+
Patch 9.1.2146
52557+
Problem: filetype: cel files are not recognized
52558+
Solution: Detect *.cel files as cel filetype (Stefan VanBuren).
52559+
5255652560
vim:tw=78:ts=8:noet:ft=help:norl:fdm=manual:nofoldenable

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def s:GetFilenameChecks(): dict<list<string>>
171171
cdrdaoconf: ['/etc/cdrdao.conf', '/etc/defaults/cdrdao', '/etc/default/cdrdao', '.cdrdao', 'any/etc/cdrdao.conf', 'any/etc/default/cdrdao', 'any/etc/defaults/cdrdao'],
172172
cdrtoc: ['file.toc'],
173173
cedar: ['file.cedar'],
174+
cel: ['file.cel'],
174175
cf: ['file.cfm', 'file.cfi', 'file.cfc'],
175176
cfengine: ['cfengine.conf'],
176177
cfg: ['file.hgrc', 'filehgrc', 'hgrc', 'some-hgrc'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2146,
737739
/**/
738740
2145,
739741
/**/

0 commit comments

Comments
 (0)