robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:e7bb907: runtime(wget): Update syntax files492bbbf6ef

master
4.4 KiB251 linesraw
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")
9  finish
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
32  accept
33  accept-regex
34  adjust-extension
35  append-output
36  ask-password
37  auth-no-challenge
38  background
39  backup-converted
40  backups
41  base
42  bind-address
43  bind-interface
44  body-data
45  body-file
46  ca-certificate
47  ca-directory
48  cache
49  certificate
50  certificate-type
51  check-certificate
52  check-hostname
53  chunk-size
54  clobber
55  compression
56  config
57  connect-timeout
58  content-disposition
59  content-on-error
60  continue
61  convert-file-only
62  convert-links
63  cookie-suffixes
64  cookies
65  crl-file
66  cut-dirs
67  cut-file-get-vars
68  cut-url-get-vars
69  dane
70  debug
71  default-http-port
72  default-https-port
73  default-page
74  delete-after
75  directories
76  directory-prefix
77  dns-cache
78  dns-cache-preload
79  dns-timeout
80  domains
81  download-attr
82  egd-file
83  exclude-directories
84  exclude-domains
85  execute
86  filter-mime-type
87  filter-urls
88  follow-sitemaps
89  follow-tags
90  force-atom
91  force-css
92  force-directories
93  force-html
94  force-metalink
95  force-progress
96  force-rss
97  force-sitemap
98  fsync-policy
99  gnupg-homedir
100  header
101  help
102  host-directories
103  hpkp
104  hpkp-file
105  hsts
106  hsts-file
107  hsts-preload
108  hsts-preload-file
109  html-extension
110  http-keep-alive
111  http-password
112  http-proxy
113  http-proxy-password
114  http-proxy-user
115  http-user
116  http2
117  http2-only
118  http2-request-window
119  https-enforce
120  https-only
121  https-proxy
122  hyperlink
123  if-modified-since
124  ignore-case
125  ignore-length
126  ignore-tags
127  include-directories
128  inet4-only
129  inet6-only
130  input-encoding
131  input-file
132  keep-extension
133  keep-session-cookies
134  level
135  limit-rate
136  list-plugins
137  load-cookies
138  local-db
139  local-encoding
140  local-plugin
141  max-redirect
142  max-threads
143  metalink
144  method
145  mirror
146  netrc
147  netrc-file
148  ocsp
149  ocsp-date
150  ocsp-file
151  ocsp-nonce
152  ocsp-server
153  ocsp-stapling
154  output-document
155  output-file
156  page-requisites
157  parent
158  password
159  plugin
160  plugin-dirs
161  plugin-help
162  plugin-opt
163  post-data
164  post-file
165  prefer-family
166  private-key
167  private-key-type
168  progress
169  protocol-directories
170  proxy
171  quiet
172  quota
173  random-file
174  random-wait
175  read-timeout
176  recursive
177  referer
178  regex-type
179  reject
180  reject-regex
181  remote-encoding
182  report-speed
183  restrict-file-names
184  retry-connrefused
185  retry-on-http-error
186  robots
187  save-content-on
188  save-cookies
189  save-headers
190  secure-protocol
191  server-response
192  show-progress
193  signature-extensions
194  span-hosts
195  spider
196  start-pos
197  stats-dns
198  stats-ocsp
199  stats-server
200  stats-site
201  stats-tls
202  strict-comments
203  tcp-fastopen
204  timeout
205  timestamping
206  tls-false-start
207  tls-resume
208  tls-session-file
209  tries
210  trust-server-names
211  unlink
212  use-askpass
213  use-server-timestamps
214  user
215  user-agent
216  verbose
217  verify-save-failed
218  verify-sig
219  version
220  wait
221  waitretry
222  xattr
223EOL
224"}}}
225
226for cmd in s:commands
227  exe '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: