diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-19 14:50:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 14:50:12 +0800 |
commit | 8d77061051d3d5e7b0eb067a0bf776f2c62a7133 (patch) | |
tree | 742c202d3c09c66a46120225be9f00da85d7d793 /test | |
parent | 3e6a9fb599f0a774a62cb1090d89202af68aba63 (diff) | |
download | rneovim-8d77061051d3d5e7b0eb067a0bf776f2c62a7133.tar.gz rneovim-8d77061051d3d5e7b0eb067a0bf776f2c62a7133.tar.bz2 rneovim-8d77061051d3d5e7b0eb067a0bf776f2c62a7133.zip |
vim-patch:9.1.0354: runtime(uci): No support for uci file types (#28409)
Problem: runtime(uci): No support for uci file types
(Wu, Zhenyu)
Solution: include basic uci ftplugin and syntax plugins
(Colin Caine)
closes: vim/vim#14575
https://github.com/vim/vim/commit/4b3fab14dbde971f15d8783e9ef125b19fdbc829
Co-authored-by: Colin Caine <complaints@cmcaine.co.uk>
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_filetype.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 917d3bfb2e..f1cc06c61f 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -2439,4 +2439,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 |