robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
492bbbf6ef
master
1" Vim syntax file 2" Language: Wget configuration file (/etc/wgetrc ~/.wgetrc) 3" Maintainer: Doug Kearns <dougkearns@gmail.com> 4" Last Change: 2026 Jan 07 5 6" GNU Wget 1.25 built on linux-gnu. 7 8if exists ( "b:current_syntax" ) 9finish 10endif 11 12let s: cpo_save = & cpo 13set cpo & vim 14 15syn match wgetComment "#. * "contains = wgetTodo contained 16 17syn keyword wgetTodo TODO NOTE FIXME XXX contained 18 19syn region wgetString start = +" +skip = +\\\\\|\\" +end = +" +contained oneline 20syn region wgetString start = +' +skip = +\\\\\|\\' +end = +' +contained oneline 21 22syn case ignore 23 24syn keyword wgetBoolean on off yes no contained 25syn keyword wgetNumber inf contained 26syn match wgetNumber "\<\d\+> "contained 27syn match wgetQuota "\<\d\+ [ kmgt ] \> "contained 28syn match wgetTime "\<\d\+ [ smhdw ] \> "contained 29 30"{{{ Commands 31let s: commands =<< trim EOL 32accept 33accept-regex 34add-host-dir 35adjust-extension 36always-rest 37ask-password 38auth-no-challenge 39background 40backup-converted 41backups 42base 43bind-address 44bind-dns-address 45body-data 46body-file 47ca-certificate 48ca-directory 49cache 50certificate 51certificate-type 52check-certificate 53choose-config 54ciphers 55compression 56connect-timeout 57content-disposition 58content-on-error 59continue 60convert-file-only 61convert-links 62cookies 63crl-file 64cut-dirs 65debug 66default-page 67delete-after 68dns-cache 69dns-servers 70dns-timeout 71dir-prefix 72dir-struct 73domains 74dot-bytes 75dots-in-line 76dot-spacing 77dot-style 78egd-file 79exclude-directories 80exclude-domains 81follow-ftp 82follow-tags 83force-html 84ftp-passwd 85ftp-password 86ftp-user 87ftp-proxy 88ftps-clear-data-connection 89ftps-fallback-to-ftp 90ftps-implicit 91ftps-resume-ssl 92hsts 93hsts-file 94ftp-stmlf 95glob 96header 97html-extension 98htmlify 99http-keep-alive 100http-passwd 101http-password 102http-proxy 103https-proxy 104https-only 105http-user 106if-modified-since 107ignore-case 108ignore-length 109ignore-tags 110include-directories 111inet4-only 112inet6-only 113input 114input-meta-link 115iri 116keep-bad-hash 117keep-session-cookies 118kill-longer 119limit-rate 120load-cookies 121locale 122local-encoding 123logfile 124login 125max-redirect 126metalink-index 127metalink-over-http 128method 129mirror 130netrc 131no-clobber 132no-config 133no-parent 134no-proxy 135numtries 136output-document 137page-requisites 138passive-ftp 139passwd 140password 141pinned-pubkey 142post-data 143post-file 144prefer-family 145preferred-location 146preserve-permissions 147private-key 148private-key-type 149progress 150protocol-directories 151proxy-passwd 152proxy-password 153proxy-user 154quiet 155quota 156random-file 157random-wait 158read-timeout 159rec-level 160recursive 161referer 162regex-type 163reject 164rejected-log 165reject-regex 166relative-only 167remote-encoding 168remove-listing 169report-speed 170restrict-file-names 171retr-symlinks 172retry-connrefused 173retry-on-host-error 174retry-on-http-error 175robots 176save-cookies 177save-headers 178secure-protocol 179server-response 180show-all-dns-entries 181show-progress 182simple-host-check 183span-hosts 184spider 185start-pos 186strict-comments 187sslcertfile 188sslcertkey 189timeout 190timestamping 191use-server-timestamps 192tries 193trust-server-names 194unlink 195use-askpass 196user 197use-proxy 198user-agent 199verbose 200wait 201wait-retry 202warc-cdx 203warc-cdx-dedup 204warc-compression 205warc-digests 206warc-file 207warc-header 208warc-keep-log 209warc-max-size 210warc-temp-dir 211wdebug 212xattr 213EOL 214"}}} 215 216for cmd in s: commands 217exe 'syn match wgetCommand "\<' .. substitute ( cmd , '-' , '[-_]\\=' , "g" ) .. '\>" nextgroup=wgetAssignmentOperator skipwhite contained' 218endfor 219unlet s: commands 220 221syn case match 222 223syn match wgetLineStart "^ "nextgroup = wgetCommand , wgetComment skipwhite 224syn match wgetAssignmentOperator "= "nextgroup = wgetString , wgetBoolean , wgetNumber , wgetQuota , wgetTime skipwhite contained 225 226hi def link wgetAssignmentOperator Special 227hi def link wgetBoolean Boolean 228hi def link wgetCommand Identifier 229hi def link wgetComment Comment 230hi def link wgetNumber Number 231hi def link wgetQuota Number 232hi def link wgetString String 233hi def link wgetTime Number 234hi def link wgetTodo Todo 235 236let b: current_syntax = "wget" 237 238let & cpo = s: cpo_save 239unlet s: cpo_save 240 241" vim: ts=8 fdm=marker: