mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
vim-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: vim/vim#15148
15addb24dd
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
parent
3c53e8f785
commit
0abaccb2a7
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<'
|
@ -261,6 +261,7 @@ local extension = {
|
||||
cdc = 'cdc',
|
||||
cdl = 'cdl',
|
||||
toc = detect_line1('\\contentsline', 'tex', 'cdrtoc'),
|
||||
cedar = 'cedar',
|
||||
cfc = 'cf',
|
||||
cfm = 'cf',
|
||||
cfi = 'cf',
|
||||
|
@ -143,6 +143,7 @@ func s:GetFilenameChecks() abort
|
||||
\ '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'],
|
||||
|
Loading…
Reference in New Issue
Block a user