| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  | " Language:	Wget configuration file (/etc/wgetrc ~/.wgetrc) | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | " Maintainer:	Doug Kearns <dougkearns@gmail.com> | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  | " Last Change:	2023 Nov 05 | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | " GNU Wget 1.21 built on linux-gnu. | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | if exists("b:current_syntax") | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | let s:cpo_save = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  | syn match wgetComment "#.*" contains=wgetTodo contained | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | syn keyword wgetTodo TODO NOTE FIXME XXX contained | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | syn region wgetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline | 
					
						
							|  |  |  | syn region wgetString start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | syn case ignore | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  | syn keyword wgetBoolean on off yes no	 contained | 
					
						
							|  |  |  | syn keyword wgetNumber	inf		 contained | 
					
						
							|  |  |  | syn match   wgetNumber "\<\d\+>"	 contained | 
					
						
							|  |  |  | syn match   wgetQuota  "\<\d\+[kmgt]\>"	 contained | 
					
						
							|  |  |  | syn match   wgetTime   "\<\d\+[smhdw]\>" contained | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | "{{{ Commands | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  | let s:commands =<< trim EOL | 
					
						
							|  |  |  |   accept | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   accept-regex | 
					
						
							|  |  |  |   add-host-dir | 
					
						
							|  |  |  |   adjust-extension | 
					
						
							|  |  |  |   always-rest | 
					
						
							|  |  |  |   ask-password | 
					
						
							|  |  |  |   auth-no-challenge | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   background | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   backup-converted | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   backups | 
					
						
							|  |  |  |   base | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   bind-address | 
					
						
							|  |  |  |   bind-dns-address | 
					
						
							|  |  |  |   body-data | 
					
						
							|  |  |  |   body-file | 
					
						
							|  |  |  |   ca-certificate | 
					
						
							|  |  |  |   ca-directory | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   cache | 
					
						
							|  |  |  |   certificate | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   certificate-type | 
					
						
							|  |  |  |   check-certificate | 
					
						
							|  |  |  |   choose-config | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   ciphers | 
					
						
							|  |  |  |   compression | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   connect-timeout | 
					
						
							|  |  |  |   content-disposition | 
					
						
							|  |  |  |   content-on-error | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   continue | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   convert-file-only | 
					
						
							|  |  |  |   convert-links | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   cookies | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   crl-file | 
					
						
							|  |  |  |   cut-dirs | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   debug | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   default-page | 
					
						
							|  |  |  |   delete-after | 
					
						
							|  |  |  |   dns-cache | 
					
						
							|  |  |  |   dns-servers | 
					
						
							|  |  |  |   dns-timeout | 
					
						
							|  |  |  |   dir-prefix | 
					
						
							|  |  |  |   dir-struct | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   domains | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   dot-bytes | 
					
						
							|  |  |  |   dots-in-line | 
					
						
							|  |  |  |   dot-spacing | 
					
						
							|  |  |  |   dot-style | 
					
						
							|  |  |  |   egd-file | 
					
						
							|  |  |  |   exclude-directories | 
					
						
							|  |  |  |   exclude-domains | 
					
						
							|  |  |  |   follow-ftp | 
					
						
							|  |  |  |   follow-tags | 
					
						
							|  |  |  |   force-html | 
					
						
							|  |  |  |   ftp-passwd | 
					
						
							|  |  |  |   ftp-password | 
					
						
							|  |  |  |   ftp-user | 
					
						
							|  |  |  |   ftp-proxy | 
					
						
							|  |  |  |   ftps-clear-data-connection | 
					
						
							|  |  |  |   ftps-fallback-to-ftp | 
					
						
							|  |  |  |   ftps-implicit | 
					
						
							|  |  |  |   ftps-resume-ssl | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   hsts | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   hsts-file | 
					
						
							|  |  |  |   ftp-stmlf | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   glob | 
					
						
							|  |  |  |   header | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   html-extension | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   htmlify | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   http-keep-alive | 
					
						
							|  |  |  |   http-passwd | 
					
						
							|  |  |  |   http-password | 
					
						
							|  |  |  |   http-proxy | 
					
						
							|  |  |  |   https-proxy | 
					
						
							|  |  |  |   https-only | 
					
						
							|  |  |  |   http-user | 
					
						
							|  |  |  |   if-modified-since | 
					
						
							|  |  |  |   ignore-case | 
					
						
							|  |  |  |   ignore-length | 
					
						
							|  |  |  |   ignore-tags | 
					
						
							|  |  |  |   include-directories | 
					
						
							|  |  |  |   inet4-only | 
					
						
							|  |  |  |   inet6-only | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   input | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   input-meta-link | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   iri | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   keep-bad-hash | 
					
						
							|  |  |  |   keep-session-cookies | 
					
						
							|  |  |  |   kill-longer | 
					
						
							|  |  |  |   limit-rate | 
					
						
							|  |  |  |   load-cookies | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   locale | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   local-encoding | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   logfile | 
					
						
							|  |  |  |   login | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   max-redirect | 
					
						
							|  |  |  |   metalink-index | 
					
						
							|  |  |  |   metalink-over-http | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   method | 
					
						
							|  |  |  |   mirror | 
					
						
							|  |  |  |   netrc | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   no-clobber | 
					
						
							|  |  |  |   no-config | 
					
						
							|  |  |  |   no-parent | 
					
						
							|  |  |  |   no-proxy | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   numtries | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   output-document | 
					
						
							|  |  |  |   page-requisites | 
					
						
							|  |  |  |   passive-ftp | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   passwd | 
					
						
							|  |  |  |   password | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   pinned-pubkey | 
					
						
							|  |  |  |   post-data | 
					
						
							|  |  |  |   post-file | 
					
						
							|  |  |  |   prefer-family | 
					
						
							|  |  |  |   preferred-location | 
					
						
							|  |  |  |   preserve-permissions | 
					
						
							|  |  |  |   private-key | 
					
						
							|  |  |  |   private-key-type | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   progress | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   protocol-directories | 
					
						
							|  |  |  |   proxy-passwd | 
					
						
							|  |  |  |   proxy-password | 
					
						
							|  |  |  |   proxy-user | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   quiet | 
					
						
							|  |  |  |   quota | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   random-file | 
					
						
							|  |  |  |   random-wait | 
					
						
							|  |  |  |   read-timeout | 
					
						
							|  |  |  |   rec-level | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   recursive | 
					
						
							|  |  |  |   referer | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   regex-type | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   reject | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   rejected-log | 
					
						
							|  |  |  |   reject-regex | 
					
						
							|  |  |  |   relative-only | 
					
						
							|  |  |  |   remote-encoding | 
					
						
							|  |  |  |   remove-listing | 
					
						
							|  |  |  |   report-speed | 
					
						
							|  |  |  |   restrict-file-names | 
					
						
							|  |  |  |   retr-symlinks | 
					
						
							|  |  |  |   retry-connrefused | 
					
						
							|  |  |  |   retry-on-host-error | 
					
						
							|  |  |  |   retry-on-http-error | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   robots | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   save-cookies | 
					
						
							|  |  |  |   save-headers | 
					
						
							|  |  |  |   secure-protocol | 
					
						
							|  |  |  |   server-response | 
					
						
							|  |  |  |   show-all-dns-entries | 
					
						
							|  |  |  |   show-progress | 
					
						
							|  |  |  |   simple-host-check | 
					
						
							|  |  |  |   span-hosts | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   spider | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   start-pos | 
					
						
							|  |  |  |   strict-comments | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   sslcertfile | 
					
						
							|  |  |  |   sslcertkey | 
					
						
							|  |  |  |   timeout | 
					
						
							|  |  |  |   timestamping | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   use-server-timestamps | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   tries | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   trust-server-names | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   unlink | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   use-askpass | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   user | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   use-proxy | 
					
						
							|  |  |  |   user-agent | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   verbose | 
					
						
							|  |  |  |   wait | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   wait-retry | 
					
						
							|  |  |  |   warc-cdx | 
					
						
							|  |  |  |   warc-cdx-dedup | 
					
						
							|  |  |  |   warc-compression | 
					
						
							|  |  |  |   warc-digests | 
					
						
							|  |  |  |   warc-file | 
					
						
							|  |  |  |   warc-header | 
					
						
							|  |  |  |   warc-keep-log | 
					
						
							|  |  |  |   warc-max-size | 
					
						
							|  |  |  |   warc-temp-dir | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  |   wdebug | 
					
						
							|  |  |  |   xattr | 
					
						
							|  |  |  | EOL | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | "}}} | 
					
						
							| 
									
										
										
										
											2005-07-25 20:42:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | for cmd in s:commands | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  |   exe 'syn match wgetCommand "\<' .. substitute(cmd, '-', '[-_]\\=', "g") .. '\>" nextgroup=wgetAssignmentOperator skipwhite contained' | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | endfor | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  | unlet s:commands | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | syn case match | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-09 06:53:20 +11:00
										 |  |  | syn match wgetLineStart		 "^" nextgroup=wgetCommand,wgetComment skipwhite | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | syn match wgetAssignmentOperator "=" nextgroup=wgetString,wgetBoolean,wgetNumber,wgetQuota,wgetTime skipwhite contained | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | hi def link wgetAssignmentOperator Special | 
					
						
							|  |  |  | hi def link wgetBoolean		   Boolean | 
					
						
							|  |  |  | hi def link wgetCommand		   Identifier | 
					
						
							|  |  |  | hi def link wgetComment		   Comment | 
					
						
							|  |  |  | hi def link wgetNumber		   Number | 
					
						
							|  |  |  | hi def link wgetQuota		   Number | 
					
						
							|  |  |  | hi def link wgetString		   String | 
					
						
							| 
									
										
										
										
											2022-05-07 21:54:03 +01:00
										 |  |  | hi def link wgetTime		   Number | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | hi def link wgetTodo		   Todo | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "wget" | 
					
						
							| 
									
										
										
										
											2005-07-25 20:42:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-03 18:35:36 +02:00
										 |  |  | let &cpo = s:cpo_save | 
					
						
							|  |  |  | unlet s:cpo_save | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " vim: ts=8 fdm=marker: |