diff options
author | Colin Caine <complaints@cmcaine.co.uk> | 2024-04-18 23:53:02 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-18 23:53:02 +0200 |
commit | 4b3fab14dbde971f15d8783e9ef125b19fdbc829 (patch) | |
tree | 54c899ae29ed12ca8ddbbd4b235faa4599dc4534 /src/testdir | |
parent | 36e667ab837cd27b8c0c9df5c2db8008b2e1b76c (diff) |
patch 9.1.0354: runtime(uci): No support for uci file typesv9.1.0354
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>
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_filetype.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e2098667ea..02a6e2d1c5 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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 |