robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
492bbbf6ef
master
1" Vim syntax file 2" Language: Wget2 configuration file (/etc/wget2rc ~/.wget2rc) 3" Maintainer: Doug Kearns <dougkearns@gmail.com> 4" Last Change: 2026 Jan 07 5 6" GNU Wget2 2.2.1 - multithreaded metalink/file/website downloader 7 8if exists ( "b:current_syntax" ) 9finish 10endif 11 12let s: cpo_save = & cpo 13set cpo & vim 14 15syn match wget2Comment "#. * "contains = wget2Todo contained 16 17syn keyword wget2Todo TODO NOTE FIXME XXX contained 18 19syn region wget2String start = +" +skip = +\\\\\|\\" +end = +" +contained oneline 20syn region wget2String start = +' +skip = +\\\\\|\\' +end = +' +contained oneline 21 22syn case ignore 23 24syn keyword wget2Boolean on off yes no y n contained 25syn keyword wget2Number infinity inf contained 26syn match wget2Number "\<\d\+> "contained 27syn match wget2Quota "\<\d\+ [ kmgt ] \> "contained 28syn match wget2Time "\<\d\+ [ smhd ] \> "contained 29 30"{{{ Commands 31let s: commands =<< trim EOL 32accept 33accept-regex 34adjust-extension 35append-output 36ask-password 37auth-no-challenge 38background 39backup-converted 40backups 41base 42bind-address 43bind-interface 44body-data 45body-file 46ca-certificate 47ca-directory 48cache 49certificate 50certificate-type 51check-certificate 52check-hostname 53chunk-size 54clobber 55compression 56config 57connect-timeout 58content-disposition 59content-on-error 60continue 61convert-file-only 62convert-links 63cookie-suffixes 64cookies 65crl-file 66cut-dirs 67cut-file-get-vars 68cut-url-get-vars 69dane 70debug 71default-http-port 72default-https-port 73default-page 74delete-after 75directories 76directory-prefix 77dns-cache 78dns-cache-preload 79dns-timeout 80domains 81download-attr 82egd-file 83exclude-directories 84exclude-domains 85execute 86filter-mime-type 87filter-urls 88follow-sitemaps 89follow-tags 90force-atom 91force-css 92force-directories 93force-html 94force-metalink 95force-progress 96force-rss 97force-sitemap 98fsync-policy 99gnupg-homedir 100header 101help 102host-directories 103hpkp 104hpkp-file 105hsts 106hsts-file 107hsts-preload 108hsts-preload-file 109html-extension 110http-keep-alive 111http-password 112http-proxy 113http-proxy-password 114http-proxy-user 115http-user 116http2 117http2-only 118http2-request-window 119https-enforce 120https-only 121https-proxy 122hyperlink 123if-modified-since 124ignore-case 125ignore-length 126ignore-tags 127include-directories 128inet4-only 129inet6-only 130input-encoding 131input-file 132keep-extension 133keep-session-cookies 134level 135limit-rate 136list-plugins 137load-cookies 138local-db 139local-encoding 140local-plugin 141max-redirect 142max-threads 143metalink 144method 145mirror 146netrc 147netrc-file 148ocsp 149ocsp-date 150ocsp-file 151ocsp-nonce 152ocsp-server 153ocsp-stapling 154output-document 155output-file 156page-requisites 157parent 158password 159plugin 160plugin-dirs 161plugin-help 162plugin-opt 163post-data 164post-file 165prefer-family 166private-key 167private-key-type 168progress 169protocol-directories 170proxy 171quiet 172quota 173random-file 174random-wait 175read-timeout 176recursive 177referer 178regex-type 179reject 180reject-regex 181remote-encoding 182report-speed 183restrict-file-names 184retry-connrefused 185retry-on-http-error 186robots 187save-content-on 188save-cookies 189save-headers 190secure-protocol 191server-response 192show-progress 193signature-extensions 194span-hosts 195spider 196start-pos 197stats-dns 198stats-ocsp 199stats-server 200stats-site 201stats-tls 202strict-comments 203tcp-fastopen 204timeout 205timestamping 206tls-false-start 207tls-resume 208tls-session-file 209tries 210trust-server-names 211unlink 212use-askpass 213use-server-timestamps 214user 215user-agent 216verbose 217verify-save-failed 218verify-sig 219version 220wait 221waitretry 222xattr 223EOL 224"}}} 225 226for cmd in s: commands 227exe 'syn match wget2Command "\<\%(no[-_]\)\=' .. substitute ( cmd , '-' , '[-_]\\=' , "g" ) .. '\>" nextgroup=wget2AssignmentOperator skipwhite contained' 228endfor 229unlet s: commands 230 231syn case match 232 233syn match wget2LineStart "^ "nextgroup = wget2Command , wget2Comment skipwhite 234syn match wget2AssignmentOperator "= "nextgroup = wget2String , wget2Boolean , wget2Number , wget2Quota , wget2Time skipwhite contained 235 236hi def link wget2AssignmentOperator Special 237hi def link wget2Boolean Boolean 238hi def link wget2Command Identifier 239hi def link wget2Comment Comment 240hi def link wget2Number Number 241hi def link wget2Quota Number 242hi def link wget2String String 243hi def link wget2Time Number 244hi def link wget2Todo Todo 245 246let b: current_syntax = "wget2" 247 248let & cpo = s: cpo_save 249unlet s: cpo_save 250 251" vim: ts=8 fdm=marker: