1
0
forked from aniani/vim

patch 9.1.0536: filetype: zone files are not recognized

Problem:  filetype: zone files are not recognized
          (rpdprd)
Solution: Detect '*.zone' files as bindzone filetype

fixes: #14222

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2024-07-06 17:39:18 +02:00
parent f3daa4525b
commit f095539b39
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
4 changed files with 20 additions and 1 deletions

View File

@ -256,6 +256,7 @@ au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key setf named
" BIND zone
au BufNewFile,BufRead named.root setf bindzone
au BufNewFile,BufRead *.zone setf bindzone
au BufNewFile,BufRead *.db call dist#ft#BindzoneCheck('')
" Blade

View File

@ -0,0 +1,16 @@
" Vim filetype plugin file
" Language: bind zone file
" Maintainer: This runtime file is looking for a new maintainer.
" Last Change: 2024 Jul 06
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin=1
setlocal comments=b:;
setlocal commentstring=;\ %s
setlocal formatoptions-=t
setlocal formatoptions+=crq
let b:undo_ftplugin = "setlocal com< cms< fo<"

View File

@ -121,7 +121,7 @@ def s:GetFilenameChecks(): dict<list<string>>
beancount: ['file.beancount'],
bib: ['file.bib'],
bicep: ['file.bicep', 'file.bicepparam'],
bindzone: ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
bindzone: ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file', 'foobar.zone'],
bitbake: ['file.bb', 'file.bbappend', 'file.bbclass', 'build/conf/local.conf', 'meta/conf/layer.conf', 'build/conf/bbappend.conf', 'meta-layer/conf/distro/foo.conf'],
blade: ['file.blade.php'],
blank: ['file.bl'],

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
536,
/**/
535,
/**/