diff options
author | ObserverOfTime <chronobserver@disroot.org> | 2022-10-17 15:28:47 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-17 15:28:47 +0100 |
commit | 4bf67ec52e938a3edaa4f452adab42a57505f940 (patch) | |
tree | 01add66ee0a038337a563f6288d263fc5465f69d | |
parent | e6a16e9950111adfcfdb85261b3d5a8c13f1d533 (diff) |
patch 9.0.0782: OpenVPN files are not recognizedv9.0.0782
Problem: OpenVPN files are not recognized.
Solution: Add patterns for OpenVPN files. (closes #11391)
-rw-r--r-- | runtime/filetype.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index f3fbfbc5dc..2b473300fc 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1960,6 +1960,10 @@ au BufNewFile,BufRead */etc/ssh/ssh_config.d/*.conf setf sshconfig au BufNewFile,BufRead sshd_config setf sshdconfig au BufNewFile,BufRead */etc/ssh/sshd_config.d/*.conf setf sshdconfig +" OpenVPN configuration +au BufNewFile,BufRead *.ovpn setf openvpn +au BufNewFile,BufRead */openvpn/*/*.conf setf openvpn + " Stata au BufNewFile,BufRead *.ado,*.do,*.imata,*.mata setf stata " Also *.class, but not when it's a Java bytecode file diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 8fd6e00926..32c14ae66c 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -400,6 +400,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'], diff --git a/src/version.c b/src/version.c index 8d690ca4b6..433152ecf6 100644 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 782, +/**/ 781, /**/ 780, |