diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-06-22 19:38:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 19:38:49 +0200 |
commit | 904ad5458de095fec563fb9180fed2c4c87331e1 (patch) | |
tree | 37d249acb8c9ea9358fb55720e19920a0c74b4ef | |
parent | f0884f21fa0cccc576f00bc18895cc80ba906031 (diff) | |
download | rneovim-904ad5458de095fec563fb9180fed2c4c87331e1.tar.gz rneovim-904ad5458de095fec563fb9180fed2c4c87331e1.tar.bz2 rneovim-904ad5458de095fec563fb9180fed2c4c87331e1.zip |
vim-patch:9.0.1645: zserio files are not recognized (#24120)
Problem: zserio files are not recognized.
Solution: Add a pattern for zserio files. (Dominique Pellé,
closes vim/vim#12544)
https://github.com/vim/vim/commit/2b994da57a0ac6ec0ec09fe3783f48ecd2bce610
Co-authored-by: =?UTF-8?q?Dominique=20Pell=C3=A9?= <dominique.pelle@gmail.com>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index fc8871f593..08a042d376 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1174,6 +1174,7 @@ local extension = { zir = 'zir', zu = 'zimbu', zut = 'zimbutempl', + zs = 'zserio', zsh = 'zsh', vala = 'vala', web = function(path, bufnr) diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 67d44099d8..fe23bd73b7 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -697,6 +697,7 @@ let s:filename_checks = { \ 'zimbu': ['file.zu'], \ 'zimbutempl': ['file.zut'], \ 'zir': ['file.zir'], + \ 'zserio': ['file.zs'], \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'], \ \ 'help': [$VIMRUNTIME . '/doc/help.txt'], |