codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Wget configuration file (/etc/wgetrc ~/.wgetrc)3" Maintainer: Doug Kearns <dougkearns@gmail.com>4" Last Change: 2026 Jan 075 6" GNU Wget 1.25 built on linux-gnu.7 8if exists("b:current_syntax")9 finish10endif11 12let s:cpo_save = &cpo13set cpo&vim14 15syn match wgetComment "#.*" contains=wgetTodo contained16 17syn keyword wgetTodo TODO NOTE FIXME XXX contained18 19syn region wgetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline20syn region wgetString start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline21 22syn case ignore23 24syn keyword wgetBoolean on off yes no contained25syn keyword wgetNumber inf contained26syn match wgetNumber "\<\d\+>" contained27syn match wgetQuota "\<\d\+[kmgt]\>" contained28syn match wgetTime "\<\d\+[smhdw]\>" contained29 30"{{{ Commands31let s:commands =<< trim EOL32 accept33 accept-regex34 add-host-dir35 adjust-extension36 always-rest37 ask-password38 auth-no-challenge39 background40 backup-converted41 backups42 base43 bind-address44 bind-dns-address45 body-data46 body-file47 ca-certificate48 ca-directory49 cache50 certificate51 certificate-type52 check-certificate53 choose-config54 ciphers55 compression56 connect-timeout57 content-disposition58 content-on-error59 continue60 convert-file-only61 convert-links62 cookies63 crl-file64 cut-dirs65 debug66 default-page67 delete-after68 dns-cache69 dns-servers70 dns-timeout71 dir-prefix72 dir-struct73 domains74 dot-bytes75 dots-in-line76 dot-spacing77 dot-style78 egd-file79 exclude-directories80 exclude-domains81 follow-ftp82 follow-tags83 force-html84 ftp-passwd85 ftp-password86 ftp-user87 ftp-proxy88 ftps-clear-data-connection89 ftps-fallback-to-ftp90 ftps-implicit91 ftps-resume-ssl92 hsts93 hsts-file94 ftp-stmlf95 glob96 header97 html-extension98 htmlify99 http-keep-alive100 http-passwd101 http-password102 http-proxy103 https-proxy104 https-only105 http-user106 if-modified-since107 ignore-case108 ignore-length109 ignore-tags110 include-directories111 inet4-only112 inet6-only113 input114 input-meta-link115 iri116 keep-bad-hash117 keep-session-cookies118 kill-longer119 limit-rate120 load-cookies121 locale122 local-encoding123 logfile124 login125 max-redirect126 metalink-index127 metalink-over-http128 method129 mirror130 netrc131 no-clobber132 no-config133 no-parent134 no-proxy135 numtries136 output-document137 page-requisites138 passive-ftp139 passwd140 password141 pinned-pubkey142 post-data143 post-file144 prefer-family145 preferred-location146 preserve-permissions147 private-key148 private-key-type149 progress150 protocol-directories151 proxy-passwd152 proxy-password153 proxy-user154 quiet155 quota156 random-file157 random-wait158 read-timeout159 rec-level160 recursive161 referer162 regex-type163 reject164 rejected-log165 reject-regex166 relative-only167 remote-encoding168 remove-listing169 report-speed170 restrict-file-names171 retr-symlinks172 retry-connrefused173 retry-on-host-error174 retry-on-http-error175 robots176 save-cookies177 save-headers178 secure-protocol179 server-response180 show-all-dns-entries181 show-progress182 simple-host-check183 span-hosts184 spider185 start-pos186 strict-comments187 sslcertfile188 sslcertkey189 timeout190 timestamping191 use-server-timestamps192 tries193 trust-server-names194 unlink195 use-askpass196 user197 use-proxy198 user-agent199 verbose200 wait201 wait-retry202 warc-cdx203 warc-cdx-dedup204 warc-compression205 warc-digests206 warc-file207 warc-header208 warc-keep-log209 warc-max-size210 warc-temp-dir211 wdebug212 xattr213EOL214"}}}215 216for cmd in s:commands217 exe 'syn match wgetCommand "\<' .. substitute(cmd, '-', '[-_]\\=', "g") .. '\>" nextgroup=wgetAssignmentOperator skipwhite contained'218endfor219unlet s:commands220 221syn case match222 223syn match wgetLineStart "^" nextgroup=wgetCommand,wgetComment skipwhite224syn match wgetAssignmentOperator "=" nextgroup=wgetString,wgetBoolean,wgetNumber,wgetQuota,wgetTime skipwhite contained225 226hi def link wgetAssignmentOperator Special227hi def link wgetBoolean Boolean228hi def link wgetCommand Identifier229hi def link wgetComment Comment230hi def link wgetNumber Number231hi def link wgetQuota Number232hi def link wgetString String233hi def link wgetTime Number234hi def link wgetTodo Todo235 236let b:current_syntax = "wget"237 238let &cpo = s:cpo_save239unlet s:cpo_save240 241" vim: ts=8 fdm=marker:242 