diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-10-17 18:36:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 18:36:10 +0200 |
commit | e4273135455084bca54a484f88fd364af62bf69c (patch) | |
tree | 7eeb8e0d60f600ababa07509f1a30a5f2a2e6cb0 | |
parent | 5046b4b4adb154bbdb50a5e96e29f777b5f807ac (diff) | |
download | rneovim-e4273135455084bca54a484f88fd364af62bf69c.tar.gz rneovim-e4273135455084bca54a484f88fd364af62bf69c.tar.bz2 rneovim-e4273135455084bca54a484f88fd364af62bf69c.zip |
vim-patch:9.0.0782: OpenVPN files are not recognized (#20702)
Problem: OpenVPN files are not recognized.
Solution: Add patterns for OpenVPN files. (closes vim/vim#11391)
https://github.com/vim/vim/commit/4bf67ec52e938a3edaa4f452adab42a57505f940
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index fa792422ba..28d13cf270 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -735,6 +735,7 @@ local extension = { opam = 'opam', ['or'] = 'openroad', scad = 'openscad', + ovpn = 'openvpn', ora = 'ora', org = 'org', org_archive = 'org', @@ -2043,6 +2044,7 @@ local pattern = { ['.*%.ml%.cppo'] = 'ocaml', ['.*%.mli%.cppo'] = 'ocaml', ['.*%.opam%.template'] = 'opam', + ['.*/openvpn/.*/.*%.conf'] = 'openvpn', ['.*%.[Oo][Pp][Ll]'] = 'opl', ['.*/etc/pam%.conf'] = 'pamconf', ['.*/etc/pam%.d/.*'] = starsetf('pamconf'), diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 1ceab2a67a..cecc112635 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -401,6 +401,7 @@ let s:filename_checks = { \ 'opam': ['opam', 'file.opam', 'file.opam.template'], \ 'openroad': ['file.or'], \ 'openscad': ['file.scad'], + \ 'openvpn': ['file.ovpn', '/etc/openvpn/client/client.conf', '/usr/share/openvpn/examples/server.conf'], \ 'opl': ['file.OPL', 'file.OPl', 'file.OpL', 'file.Opl', 'file.oPL', 'file.oPl', 'file.opL', 'file.opl'], \ 'ora': ['file.ora'], \ 'org': ['file.org', 'file.org_archive'], |