mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.0532: filetype: Cedar files not recognized
Problem: filetype: Cedar files not recognized Solution: Detect '*.cedar' files as cedar filetype (Riley Bruins) References: https://github.com/cedar-policy closes: #15148 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6a4afb1efc
commit
15addb24dd
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -113,6 +113,7 @@ runtime/ftplugin/astro.vim @romainl
|
||||
runtime/ftplugin/awk.vim @dkearns
|
||||
runtime/ftplugin/basic.vim @dkearns
|
||||
runtime/ftplugin/bst.vim @tpope
|
||||
runtime/ftplugin/cedar.vim @ribru17
|
||||
runtime/ftplugin/cfg.vim @chrisbra
|
||||
runtime/ftplugin/chatito.vim @ObserverOfTime
|
||||
runtime/ftplugin/chicken.vim @evhan
|
||||
|
@ -321,6 +321,9 @@ au BufNewFile,BufRead *.toc
|
||||
" Cdrdao config
|
||||
au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/defaults/cdrdao,*/etc/default/cdrdao,.cdrdao setf cdrdaoconf
|
||||
|
||||
" Cedar
|
||||
au BufNewFile,BufRead *.cedar setf cedar
|
||||
|
||||
" Cfengine
|
||||
au BufNewFile,BufRead cfengine.conf setf cfengine
|
||||
|
||||
|
13
runtime/ftplugin/cedar.vim
Normal file
13
runtime/ftplugin/cedar.vim
Normal file
@ -0,0 +1,13 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Cedar
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2024 Jul 4
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:// commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
@ -142,6 +142,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
cdl: ['file.cdl'],
|
||||
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'],
|
||||
cf: ['file.cfm', 'file.cfi', 'file.cfc'],
|
||||
cfengine: ['cfengine.conf'],
|
||||
cfg: ['file.hgrc', 'filehgrc', 'hgrc', 'some-hgrc'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
532,
|
||||
/**/
|
||||
531,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user