0
0
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:
Colin Caine
2024-04-18 23:53:02 +02:00
committed by Christian Brabandt
parent 36e667ab83
commit 4b3fab14db
6 changed files with 100 additions and 0 deletions

View File

@@ -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

View File

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