neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

wget.vim (4229B)


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