vim-patch:8.2.4859: wget2 files are not recognized (#18385)

Problem:    wget2 files are not recognized.
Solution:   Add patterns to recognize wget2. (Doug Kearns)
3a974a8933
This commit is contained in:
Christian Clason 2022-05-03 10:23:11 +02:00 committed by GitHub
parent 13520aae16
commit 46734cf7c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -2125,6 +2125,9 @@ au BufNewFile,BufRead *.wm setf webmacro
" Wget config
au BufNewFile,BufRead .wgetrc,wgetrc setf wget
" Wget2 config
au BufNewFile,BufRead .wget2rc,wget2rc setf wget2
" Website MetaLanguage
au BufNewFile,BufRead *.wml setf wml

View File

@ -1130,7 +1130,9 @@ local filename = {
["_viminfo"] = "viminfo",
[".viminfo"] = "viminfo",
[".wgetrc"] = "wget",
[".wget2rc"] = "wget2",
wgetrc = "wget",
wget2rc = "wget2",
[".wvdialrc"] = "wvdial",
["wvdial.conf"] = "wvdial",
[".Xresources"] = "xdefaults",

View File

@ -591,6 +591,7 @@ let s:filename_checks = {
\ 'wast': ['file.wast', 'file.wat'],
\ 'webmacro': ['file.wm'],
\ 'wget': ['.wgetrc', 'wgetrc'],
\ 'wget2': ['.wget2rc', 'wget2rc'],
\ 'winbatch': ['file.wbt'],
\ 'wml': ['file.wml'],
\ 'wsh': ['file.wsf', 'file.wsc'],