mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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)
4bf67ec52e
This commit is contained in:
parent
5046b4b4ad
commit
e427313545
@ -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'),
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user