mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
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: vim/vim#14222
f095539b39
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
16
runtime/ftplugin/bindzone.vim
Normal file
16
runtime/ftplugin/bindzone.vim
Normal 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<"
|
@@ -236,6 +236,7 @@ local extension = {
|
|||||||
db = detect.bindzone,
|
db = detect.bindzone,
|
||||||
bicep = 'bicep',
|
bicep = 'bicep',
|
||||||
bicepparam = 'bicep',
|
bicepparam = 'bicep',
|
||||||
|
zone = 'bindzone',
|
||||||
bb = 'bitbake',
|
bb = 'bitbake',
|
||||||
bbappend = 'bitbake',
|
bbappend = 'bitbake',
|
||||||
bbclass = 'bitbake',
|
bbclass = 'bitbake',
|
||||||
|
@@ -122,7 +122,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'beancount': ['file.beancount'],
|
\ 'beancount': ['file.beancount'],
|
||||||
\ 'bib': ['file.bib'],
|
\ 'bib': ['file.bib'],
|
||||||
\ 'bicep': ['file.bicep', 'file.bicepparam'],
|
\ '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'],
|
\ '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'],
|
\ 'blade': ['file.blade.php'],
|
||||||
\ 'blank': ['file.bl'],
|
\ 'blank': ['file.bl'],
|
||||||
|
Reference in New Issue
Block a user