Install vim73
[msysgit/mtrensch.git] / share / vim / vim73 / syntax / wget.vim
blobde8f558f9c27b0c415273767c68b1690c8bf5001
1 " Wget syntax file
2 " Filename:     wget.vim
3 " Language:     Wget configuration file ( /etc/wgetrc ~/.wgetrc )
4 " Maintainer:   Doug Kearns <djkea2@gus.gscit.monash.edu.au>
5 " URL:          http://gus.gscit.monash.edu.au/~djkea2/vim/syntax/wget.vim
6 " Last Change:  2005 Jul 24
8 " TODO: all commands are actually underscore and hyphen insensitive, though
9 "       they are normally named as listed below
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
13 if version < 600
14   syntax clear
15 elseif exists("b:current_syntax")
16   finish
17 endif
19 syn match   wgetComment "^\s*#.*$" contains=wgetTodo
21 syn keyword wgetTodo TODO NOTE FIXME XXX contained
23 syn match   wgetAssignment "^\s*[A-Za-z0-9_-]\+\s*=\s*.*$" contains=wgetCommand,wgetAssignmentOperator,wgetString,wgetBoolean,wgetNumber,wgetValue,wgetQuota,wgetRestriction,wgetTime
25 syn match   wgetAssignmentOperator "=" contained
27 syn region  wgetString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline
28 syn region  wgetString start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline
30 " Note: make this a match so that always_rest matches properly
31 syn case ignore
32 syn match   wgetBoolean "\<on\|off\|always\|never\|1\|0\>" contained
33 syn case match
35 syn match   wgetNumber  "\<\d\+\|inf\>"         contained
36 syn match   wgetQuota   "\<\d\+[kKmM]\?\>"      contained
37 syn match   wgetTime    "\<\d\+[smhdw]\>"       contained
39 syn case ignore
40 syn keyword wgetValue   default binary mega giga micro contained
41 syn case match
43 syn match   wgetRestriction  "\<\%(windows\|unix\)\%(,nocontrol\)\=\>"  contained
44 syn match   wgetRestriction  "\<nocontrol\>"                            contained
46 syn case ignore
47 syn match wgetCommand "^\s*accept" contained
48 syn match wgetCommand "^\s*add[-_]\=hostdir" contained
49 syn match wgetCommand "^\s*always[-_]\=rest" contained
50 syn match wgetCommand "^\s*background" contained
51 syn match wgetCommand "^\s*backup[-_]\=converted" contained
52 syn match wgetCommand "^\s*backups" contained
53 syn match wgetCommand "^\s*base" contained
54 syn match wgetCommand "^\s*bind[-_]\=address" contained
55 syn match wgetCommand "^\s*ca[-_]\=certificate" contained
56 syn match wgetCommand "^\s*ca[-_]\=directory" contained
57 syn match wgetCommand "^\s*cache" contained
58 syn match wgetCommand "^\s*certificate" contained
59 syn match wgetCommand "^\s*certificate[-_]\=type" contained
60 syn match wgetCommand "^\s*check[-_]\=certificate" contained
61 syn match wgetCommand "^\s*connect[-_]\=timeout" contained
62 syn match wgetCommand "^\s*continue" contained
63 syn match wgetCommand "^\s*convert[-_]\=links" contained
64 syn match wgetCommand "^\s*cookies" contained
65 syn match wgetCommand "^\s*cut[-_]\=dirs" contained
66 syn match wgetCommand "^\s*debug" contained
67 syn match wgetCommand "^\s*delete[-_]\=after" contained
68 syn match wgetCommand "^\s*dns[-_]\=cache" contained
69 syn match wgetCommand "^\s*dns[-_]\=timeout" contained
70 syn match wgetCommand "^\s*dir[-_]\=prefix" contained
71 syn match wgetCommand "^\s*dir[-_]\=struct" contained
72 syn match wgetCommand "^\s*domains" contained
73 syn match wgetCommand "^\s*dot[-_]\=bytes" contained
74 syn match wgetCommand "^\s*dots[-_]\=in[-_]\=line" contained
75 syn match wgetCommand "^\s*dot[-_]\=spacing" contained
76 syn match wgetCommand "^\s*dot[-_]\=style" contained
77 syn match wgetCommand "^\s*egd[-_]\=file" contained
78 syn match wgetCommand "^\s*exclude[-_]\=directories" contained
79 syn match wgetCommand "^\s*exclude[-_]\=domains" contained
80 syn match wgetCommand "^\s*follow[-_]\=ftp" contained
81 syn match wgetCommand "^\s*follow[-_]\=tags" contained
82 syn match wgetCommand "^\s*force[-_]\=html" contained
83 syn match wgetCommand "^\s*ftp[-_]\=passw\(or\)\=d" contained
84 syn match wgetCommand "^\s*ftp[-_]\=user" contained
85 syn match wgetCommand "^\s*ftp[-_]\=proxy" contained
86 syn match wgetCommand "^\s*glob" contained
87 syn match wgetCommand "^\s*header" contained
88 syn match wgetCommand "^\s*html[-_]\=extension" contained
89 syn match wgetCommand "^\s*htmlify" contained
90 syn match wgetCommand "^\s*http[-_]\=keep[-_]\=alive" contained
91 syn match wgetCommand "^\s*http[-_]\=passwd" contained
92 syn match wgetCommand "^\s*http[-_]\=password" contained
93 syn match wgetCommand "^\s*http[-_]\=proxy" contained
94 syn match wgetCommand "^\s*https[-_]\=proxy" contained
95 syn match wgetCommand "^\s*http[-_]\=user" contained
96 syn match wgetCommand "^\s*ignore[-_]\=length" contained
97 syn match wgetCommand "^\s*ignore[-_]\=tags" contained
98 syn match wgetCommand "^\s*include[-_]\=directories" contained
99 syn match wgetCommand "^\s*inet4[-_]\=only" contained
100 syn match wgetCommand "^\s*inet6[-_]\=only" contained
101 syn match wgetCommand "^\s*input" contained
102 syn match wgetCommand "^\s*keep[-_]\=session[-_]\=cookies" contained
103 syn match wgetCommand "^\s*kill[-_]\=longer" contained
104 syn match wgetCommand "^\s*limit[-_]\=rate" contained
105 syn match wgetCommand "^\s*load[-_]\=cookies" contained
106 syn match wgetCommand "^\s*logfile" contained
107 syn match wgetCommand "^\s*login" contained
108 syn match wgetCommand "^\s*mirror" contained
109 syn match wgetCommand "^\s*netrc" contained
110 syn match wgetCommand "^\s*no[-_]\=clobber" contained
111 syn match wgetCommand "^\s*no[-_]\=parent" contained
112 syn match wgetCommand "^\s*no[-_]\=proxy" contained
113 " Note: this option is deprecated, use 'tries' instead
114 syn match wgetCommand "^\s*numtries" contained
115 syn match wgetCommand "^\s*output[-_]\=document" contained
116 syn match wgetCommand "^\s*page[-_]\=requisites" contained
117 syn match wgetCommand "^\s*passive[-_]\=ftp" contained
118 syn match wgetCommand "^\s*passwd" contained
119 syn match wgetCommand "^\s*password" contained
120 syn match wgetCommand "^\s*post[-_]\=data" contained
121 syn match wgetCommand "^\s*post[-_]\=file" contained
122 syn match wgetCommand "^\s*prefer[-_]\=family" contained
123 syn match wgetCommand "^\s*preserve[-_]\=permissions" contained
124 syn match wgetCommand "^\s*private[-_]\=key" contained
125 syn match wgetCommand "^\s*private[-_]\=key[-_]\=type" contained
126 syn match wgetCommand "^\s*progress" contained
127 syn match wgetCommand "^\s*protocol[-_]\=directories" contained
128 syn match wgetCommand "^\s*proxy[-_]\=passwd" contained
129 syn match wgetCommand "^\s*proxy[-_]\=password" contained
130 syn match wgetCommand "^\s*proxy[-_]\=user" contained
131 syn match wgetCommand "^\s*quiet" contained
132 syn match wgetCommand "^\s*quota" contained
133 syn match wgetCommand "^\s*random[-_]\=file" contained
134 syn match wgetCommand "^\s*random[-_]\=wait" contained
135 syn match wgetCommand "^\s*read[-_]\=timeout" contained
136 syn match wgetCommand "^\s*reclevel" contained
137 syn match wgetCommand "^\s*recursive" contained
138 syn match wgetCommand "^\s*referer" contained
139 syn match wgetCommand "^\s*reject" contained
140 syn match wgetCommand "^\s*relative[-_]\=only" contained
141 syn match wgetCommand "^\s*remove[-_]\=listing" contained
142 syn match wgetCommand "^\s*restrict[-_]\=file[-_]\=names" contained
143 syn match wgetCommand "^\s*retr[-_]\=symlinks" contained
144 syn match wgetCommand "^\s*retry[-_]\=connrefused" contained
145 syn match wgetCommand "^\s*robots" contained
146 syn match wgetCommand "^\s*save[-_]\=cookies" contained
147 syn match wgetCommand "^\s*save[-_]\=headers" contained
148 syn match wgetCommand "^\s*secure[-_]\=protocol" contained
149 syn match wgetCommand "^\s*server[-_]\=response" contained
150 " Note: this option was removed in wget 1.8
151 syn match wgetCommand "^\s*simple[-_]\=host[-_]\=check" contained
152 syn match wgetCommand "^\s*span[-_]\=hosts" contained
153 syn match wgetCommand "^\s*spider" contained
154 syn match wgetCommand "^\s*strict[-_]\=comments" contained
155 syn match wgetCommand "^\s*sslcertfile" contained
156 syn match wgetCommand "^\s*sslcertkey" contained
157 syn match wgetCommand "^\s*timeout" contained
158 syn match wgetCommand "^\s*time[-_]\=stamping" contained
159 syn match wgetCommand "^\s*tries" contained
160 syn match wgetCommand "^\s*user" contained
161 syn match wgetCommand "^\s*use[-_]\=proxy" contained
162 syn match wgetCommand "^\s*user[-_]\=agent" contained
163 syn match wgetCommand "^\s*verbose" contained
164 syn match wgetCommand "^\s*wait" contained
165 syn match wgetCommand "^\s*wait[-_]\=retry" contained
166 syn case match
168 " Define the default highlighting.
169 " For version 5.7 and earlier: only when not done already
170 " For version 5.8 and later: only when an item doesn't have highlighting yet
171 if version >= 508 || !exists("did_wget_syn_inits")
172   if version < 508
173     let did_wget_syn_inits = 1
174     command -nargs=+ HiLink hi link <args>
175   else
176     command -nargs=+ HiLink hi def link <args>
177   endif
179   HiLink wgetAssignmentOperator Special
180   HiLink wgetBoolean            Boolean
181   HiLink wgetCommand            Identifier
182   HiLink wgetComment            Comment
183   HiLink wgetNumber             Number
184   HiLink wgetQuota              Number
185   HiLink wgetString             String
186   HiLink wgetTodo               Todo
187   HiLink wgetValue              Constant
189   delcommand HiLink
190 endif
192 let b:current_syntax = "wget"
194 " vim: ts=8