mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
patch 9.1.0544: filetype: ldapconf files are not recognized
Problem: filetype: ldapconf files are not recognized Solution: Detect '.ldaprc', 'ldap.conf' and 'ldaprc' files as ldapconf filetype, include a simple ldapconf ftplugin file (Riley Bruins) [Specification](https://www.openldap.org/software//man.cgi?query=ldap.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Release) closes: #15176 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
f77a0e9f41
commit
62f31e9499
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -187,6 +187,7 @@ runtime/ftplugin/kconfig.vim @chrisbra
|
||||
runtime/ftplugin/kdl.vim @imsnif @jiangyinzuo
|
||||
runtime/ftplugin/kivy.vim @ribru17
|
||||
runtime/ftplugin/kotlin.vim @udalov
|
||||
runtime/ftplugin/ldapconf.vim @ribru17
|
||||
runtime/ftplugin/less.vim @genoma
|
||||
runtime/ftplugin/lex.vim @ribru17
|
||||
runtime/ftplugin/liquid.vim @tpope
|
||||
|
@ -1250,6 +1250,9 @@ au BufNewFile,BufRead */etc/limits,*/etc/*limits.conf,*/etc/*limits.d/*.conf set
|
||||
" LambdaProlog or SML (see dist#ft#FTmod for *.mod)
|
||||
au BufNewFile,BufRead *.sig call dist#ft#FTsig()
|
||||
|
||||
" LDAP configuration
|
||||
au BufNewFile,BufRead ldaprc,.ldaprc,ldap.conf setf ldapconf
|
||||
|
||||
" LDAP LDIF
|
||||
au BufNewFile,BufRead *.ldif setf ldif
|
||||
|
||||
|
13
runtime/ftplugin/ldapconf.vim
Normal file
13
runtime/ftplugin/ldapconf.vim
Normal file
@ -0,0 +1,13 @@
|
||||
" Vim filetype plugin
|
||||
" Language: ldap.conf(5) configuration file.
|
||||
" Maintainer: Riley Bruins <ribru17@gmail.com>
|
||||
" Last Change: 2024 Jul 06
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:# commentstring=#\ %s
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms<'
|
@ -385,6 +385,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
lace: ['file.ace', 'file.ACE'],
|
||||
latte: ['file.latte', 'file.lte'],
|
||||
ld: ['file.ld', 'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'],
|
||||
ldapconf: ['ldap.conf', '.ldaprc', 'ldaprc'],
|
||||
ldif: ['file.ldif'],
|
||||
lean: ['file.lean'],
|
||||
ledger: ['file.ldg', 'file.ledger', 'file.journal'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
544,
|
||||
/**/
|
||||
543,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user