vim-patch:9.1.2146: filetype: cel files are not recognized (#37834)

Problem:  filetype: cel files are not recognized
Solution: Detect *.cel files as cel filetype (Stefan VanBuren).

Reference:
https://cel.dev/
e36c49febc/testing/src/test/resources/expressions/coverage_test_case/simple_expression.cel
d0d2dbabae/example.cel

closes: vim/vim#19381

fb5777fa20

Co-authored-by: Stefan VanBuren <svanburen@buf.build>
This commit is contained in:
zeertzjq
2026-02-13 08:34:00 +08:00
committed by GitHub
parent 844a683641
commit 39d8a9c353
2 changed files with 2 additions and 0 deletions

View File

@@ -296,6 +296,7 @@ local extension = {
cdl = 'cdl',
toc = detect_line1('\\contentsline', 'tex', 'cdrtoc'),
cedar = 'cedar',
cel = 'cel',
cfc = 'cf',
cfm = 'cf',
cfi = 'cf',

View File

@@ -171,6 +171,7 @@ func s:GetFilenameChecks() abort
\ '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'],