mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.1.0354: runtime(uci): No support for uci file types
Problem: runtime(uci): No support for uci file types (Wu, Zhenyu) Solution: include basic uci ftplugin and syntax plugins (Colin Caine) closes: #14575 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Colin Caine <complaints@cmcaine.co.uk> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
36e667ab83
commit
4b3fab14db
@@ -2441,4 +2441,26 @@ func Test_def_file()
|
||||
filetype off
|
||||
endfunc
|
||||
|
||||
func Test_uci_file()
|
||||
filetype on
|
||||
|
||||
call mkdir('any/etc/config', 'pR')
|
||||
call writefile(['config firewall'], 'any/etc/config/firewall', 'D')
|
||||
split any/etc/config/firewall
|
||||
call assert_equal('uci', &filetype)
|
||||
bwipe!
|
||||
|
||||
call writefile(['# config for nginx here'], 'any/etc/config/firewall', 'D')
|
||||
split any/etc/config/firewall
|
||||
call assert_notequal('uci', &filetype)
|
||||
bwipe!
|
||||
|
||||
call writefile(['# Copyright Cool Cats 1997', 'config firewall'], 'any/etc/config/firewall', 'D')
|
||||
split any/etc/config/firewall
|
||||
call assert_equal('uci', &filetype)
|
||||
bwipe!
|
||||
|
||||
filetype off
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
354,
|
||||
/**/
|
||||
353,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user