1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-16 14:57:52 +01:00
vim/runtime/syntax/wget.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

242 lines
4.1 KiB
VimL
Raw Permalink Normal View History

2013-08-03 18:35:36 +02:00
" Vim syntax file
" Language: Wget configuration file (/etc/wgetrc ~/.wgetrc)
2013-08-03 18:35:36 +02:00
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" 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
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
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
accept-regex
add-host-dir
adjust-extension
always-rest
ask-password
auth-no-challenge
2022-05-07 21:54:03 +01:00
background
backup-converted
2022-05-07 21:54:03 +01:00
backups
base
bind-address
bind-dns-address
body-data
body-file
ca-certificate
ca-directory
2022-05-07 21:54:03 +01:00
cache
certificate
certificate-type
check-certificate
choose-config
2022-05-07 21:54:03 +01:00
ciphers
compression
connect-timeout
content-disposition
content-on-error
2022-05-07 21:54:03 +01:00
continue
convert-file-only
convert-links
2022-05-07 21:54:03 +01:00
cookies
crl-file
cut-dirs
2022-05-07 21:54:03 +01:00
debug
default-page
delete-after
dns-cache
dns-servers
dns-timeout
dir-prefix
dir-struct
2022-05-07 21:54:03 +01:00
domains
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
hsts-file
ftp-stmlf
2022-05-07 21:54:03 +01:00
glob
header
html-extension
2022-05-07 21:54:03 +01:00
htmlify
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
input-meta-link
2022-05-07 21:54:03 +01:00
iri
keep-bad-hash
keep-session-cookies
kill-longer
limit-rate
load-cookies
2022-05-07 21:54:03 +01:00
locale
local-encoding
2022-05-07 21:54:03 +01:00
logfile
login
max-redirect
metalink-index
metalink-over-http
2022-05-07 21:54:03 +01:00
method
mirror
netrc
no-clobber
no-config
no-parent
no-proxy
2022-05-07 21:54:03 +01:00
numtries
output-document
page-requisites
passive-ftp
2022-05-07 21:54:03 +01:00
passwd
password
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
protocol-directories
proxy-passwd
proxy-password
proxy-user
2022-05-07 21:54:03 +01:00
quiet
quota
random-file
random-wait
read-timeout
rec-level
2022-05-07 21:54:03 +01:00
recursive
referer
regex-type
2022-05-07 21:54:03 +01:00
reject
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
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
start-pos
strict-comments
2022-05-07 21:54:03 +01:00
sslcertfile
sslcertkey
timeout
timestamping
use-server-timestamps
2022-05-07 21:54:03 +01:00
tries
trust-server-names
2022-05-07 21:54:03 +01:00
unlink
use-askpass
2022-05-07 21:54:03 +01:00
user
use-proxy
user-agent
2022-05-07 21:54:03 +01:00
verbose
wait
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
exe 'syn match wgetCommand "\<' .. substitute(cmd, '-', '[-_]\\=', "g") .. '\>" nextgroup=wgetAssignmentOperator skipwhite contained'
2013-08-03 18:35:36 +02:00
endfor
unlet s:commands
2022-05-07 21:54:03 +01:00
2004-06-13 20:20:40 +00:00
syn case match
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: