comparison runtime/syntax/lftp.vim @ 375:f14cbd913415 v7.0097

updated for version 7.0097
author vimboss
date Wed, 29 Jun 2005 22:40:58 +0000
parents 3fc0f57ecb91
children 4fe8e1a7758e
comparison
equal deleted inserted replaced
374:575dacb554d8 375:f14cbd913415
1 " Vim syntax file 1 " Vim syntax file
2 " Language: lftp(1) configuration file 2 " Language: lftp(1) configuration file
3 " Maintainer: Nikolai Weibull <source@pcppopper.org> 3 " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/lftp/ 4 " Latest Revision: 2005-06-27
5 " Latest Revision: 2004-05-22
6 " arch-tag: f2537c49-5d64-42b8-beb4-13a09dd723d2
7 5
8 if version < 600 6 if exists("b:current_syntax")
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 7 finish
12 endif 8 endif
13 9
14 " Set iskeyword since we need `-' (and potentially others) in keywords. 10 let s:cpo_save = &cpo
15 " For version 5.x: Set it globally 11 set cpo&vim
16 " For version 6.x: Set it locally
17 if version >= 600
18 command -nargs=1 SetIsk setlocal iskeyword=<args>
19 else
20 command -nargs=1 SetIsk set iskeyword=<args>
21 endif
22 SetIsk 48-57,97-122,-
23 delcommand SetIsk
24 12
25 " comments 13 setlocal iskeyword=@,48-57,-
26 syn region lftpComment display oneline matchgroup=lftpComment start="#" end="$" contains=lftpTodo
27 14
28 " todo 15 syn region lftpComment display oneline matchgroup=lftpComment
29 syn keyword lftpTodo contained TODO FIXME XXX NOTE 16 \ start='#' end='$' contains=lftpTodo,@Spell
30 17
31 " strings 18 syn keyword lftpTodo contained TODO FIXME XXX NOTE
32 syn region lftpString contained display start=+"+ skip=+\\$\|\\"+ end=+"+ end=+$+
33 19
34 " numbers 20 syn region lftpString contained display
35 syn match lftpNumber contained display "\<\d\+\(\.\d\+\)\=\>" 21 \ start=+"+ skip=+\\$\|\\"+ end=+"+ end=+$+
36 22
37 " booleans and other things 23 syn match lftpNumber contained display '\<\d\+\(\.\d\+\)\=\>'
38 syn keyword lftpBoolean contained yes no on off true false
39 24
40 " intervals 25 syn keyword lftpBoolean contained yes no on off true false
41 syn keyword lftpInterval contained infinity inf never forever
42 syn match lftpInterval contained "\<\(\d\+\(\.\d\+\)\=[dhms]\)\+\>"
43 26
44 " commands 27 syn keyword lftpInterval contained infinity inf never forever
45 syn keyword lftpKeywords alias anon at bookmark cache cat cd chmod close 28 syn match lftpInterval contained '\<\(\d\+\(\.\d\+\)\=[dhms]\)\+\>'
46 syn keyword lftpKeywords cls command debug du echo exit fg find get get1
47 syn keyword lftpKeywords glob help history jobs kill lcd lftp lpwd ls
48 syn keyword lftpKeywords mget mirror mkdir module
49 syn keyword lftpKeywords more mput mrm mv nlist open pget put pwd queue
50 syn keyword lftpKeywords quote reget recls rels renlist repeat
51 syn keyword lftpKeywords reput rm rmdir scache site source suspend user
52 syn keyword lftpKeywords version wait zcat zmore
53 29
54 " settings 30 syn keyword lftpKeywords alias anon at bookmark cache cat cd chmod close
55 syn region lftpSet matchgroup=lftpKeywords start="set" end=";" end="$" contains=lftpString,lftpNumber,lftpBoolean,lftpInterval,lftpSettingsPrefix,lftpSettings 31 \ cls command debug du echo exit fg find get
56 syn match lftpSettingsPrefix contained '\<\%(bmk\|cache\|cmd\|color\|dns\):' 32 \ get1 glob help history jobs kill lcd lftp
57 syn match lftpSettingsPrefix contained '\<\%(file\|fish\|ftp\|hftp\):' 33 \ lpwd ls mget mirror mkdir module more mput
58 syn match lftpSettingsPrefix contained '\<\%(http\|https\|mirror\|module\):' 34 \ mrm mv nlist open pget put pwd queue quote
59 syn match lftpSettingsPrefix contained '\<\%(net\|sftp\|ssl\|xfer\):' 35 \ reget recls rels renlist repeat reput rm
36 \ rmdir scache site source suspend user version
37 \ wait zcat zmore
38
39 syn region lftpSet matchgroup=lftpKeywords
40 \ start="set" end=";" end="$"
41 \ contains=lftpString,lftpNumber,lftpBoolean,
42 \ lftpInterval,lftpSettingsPrefix,lftpSettings
43 syn match lftpSettingsPrefix contained '\<\%(bmk\|cache\|cmd\|color\|dns\):'
44 syn match lftpSettingsPrefix contained '\<\%(file\|fish\|ftp\|hftp\):'
45 syn match lftpSettingsPrefix contained '\<\%(http\|https\|mirror\|module\):'
46 syn match lftpSettingsPrefix contained '\<\%(net\|sftp\|ssl\|xfer\):'
60 " bmk: 47 " bmk:
61 syn keyword lftpSettings contained save-p[asswords] 48 syn keyword lftpSettings contained save-p[asswords]
62 " cache: 49 " cache:
63 syn keyword lftpSettings contained cache-em[pty-listings] en[able] 50 syn keyword lftpSettings contained cache-em[pty-listings] en[able]
64 syn keyword lftpSettings contained exp[ire] siz[e] 51 \ exp[ire] siz[e]
65 " cmd: 52 " cmd:
66 syn keyword lftpSettings contained at[-exit] cls-c[ompletion-default] 53 syn keyword lftpSettings contained at[-exit] cls-c[ompletion-default]
67 syn keyword lftpSettings contained cls-d[efault] cs[h-history] 54 \ cls-d[efault] cs[h-history]
68 syn keyword lftpSettings contained default-p[rotocol] default-t[itle] 55 \ default-p[rotocol] default-t[itle]
69 syn keyword lftpSettings contained fai[l-exit] in[teractive] 56 syn keyword lftpSettings contained fai[l-exit] in[teractive]
70 syn keyword lftpSettings contained lo[ng-running] ls[-default] 57 \ lo[ng-running] ls[-default] mo[ve-background]
71 syn keyword lftpSettings contained mo[ve-background] prom[pt] 58 \ prom[pt]
72 syn keyword lftpSettings contained rem[ote-completion] 59 \ rem[ote-completion]
73 syn keyword lftpSettings contained save-c[wd-history] save-r[l-history] 60 \ save-c[wd-history] save-r[l-history]
74 syn keyword lftpSettings contained set-t[erm-status] statu[s-interval] 61 \ set-t[erm-status] statu[s-interval]
75 syn keyword lftpSettings contained te[rm-status] verb[ose] verify-h[ost] 62 \ te[rm-status] verb[ose] verify-h[ost]
76 syn keyword lftpSettings contained verify-path verify-path[-cached] 63 \ verify-path verify-path[-cached]
77 " color: 64 " color:
78 syn keyword lftpSettings contained dir[-colors] use-c[olor] 65 syn keyword lftpSettings contained dir[-colors] use-c[olor]
79 " dns: 66 " dns:
80 syn keyword lftpSettings contained S[RV-query] cache-en[able] 67 syn keyword lftpSettings contained S[RV-query] cache-en[able]
81 syn keyword lftpSettings contained cache-ex[pire] cache-s[ize] 68 \ cache-ex[pire] cache-s[ize]
82 syn keyword lftpSettings contained fat[al-timeout] o[rder] use-fo[rk] 69 \ fat[al-timeout] o[rder] use-fo[rk]
83 " file: 70 " file:
84 syn keyword lftpSettings contained ch[arset] 71 syn keyword lftpSettings contained ch[arset]
85 " fish: 72 " fish:
86 syn keyword lftpSettings contained connect[-program] sh[ell] 73 syn keyword lftpSettings contained connect[-program] sh[ell]
87 " ftp: 74 " ftp:
88 syn keyword lftpSettings contained acct anon-p[ass] anon-u[ser] 75 syn keyword lftpSettings contained acct anon-p[ass] anon-u[ser]
89 syn keyword lftpSettings contained au[to-sync-mode] b[ind-data-socket] 76 \ au[to-sync-mode] b[ind-data-socket]
90 syn keyword lftpSettings contained ch[arset] cli[ent] dev[ice-prefix] 77 \ ch[arset] cli[ent] dev[ice-prefix]
91 syn keyword lftpSettings contained fi[x-pasv-address] fxp-f[orce] 78 \ fi[x-pasv-address] fxp-f[orce]
92 syn keyword lftpSettings contained fxp-p[assive-source] h[ome] la[ng] 79 \ fxp-p[assive-source] h[ome] la[ng]
93 syn keyword lftpSettings contained list-e[mpty-ok] list-o[ptions] 80 \ list-e[mpty-ok] list-o[ptions]
94 syn keyword lftpSettings contained nop[-interval] pas[sive-mode] 81 \ nop[-interval] pas[sive-mode]
95 syn keyword lftpSettings contained port-i[pv4] port-r[ange] prox[y] 82 \ port-i[pv4] port-r[ange] prox[y]
96 syn keyword lftpSettings contained rest-l[ist] rest-s[tor] 83 \ rest-l[ist] rest-s[tor]
97 syn keyword lftpSettings contained retry-530 retry-530[-anonymous] 84 \ retry-530 retry-530[-anonymous]
98 syn keyword lftpSettings contained sit[e-group] skey-a[llow] 85 \ sit[e-group] skey-a[llow]
99 syn keyword lftpSettings contained skey-f[orce] ssl-allow 86 \ skey-f[orce] ssl-allow
100 syn keyword lftpSettings contained ssl-allow[-anonymous] ssl-au[th] 87 \ ssl-allow[-anonymous] ssl-au[th]
101 syn keyword lftpSettings contained ssl-f[orce] ssl-protect-d[ata] 88 \ ssl-f[orce] ssl-protect-d[ata]
102 syn keyword lftpSettings contained ssl-protect-l[ist] stat-[interval] 89 \ ssl-protect-l[ist] stat-[interval]
103 syn keyword lftpSettings contained sy[nc-mode] timez[one] use-a[bor] 90 \ sy[nc-mode] timez[one] use-a[bor]
104 syn keyword lftpSettings contained use-fe[at] use-fx[p] use-hf[tp] 91 \ use-fe[at] use-fx[p] use-hf[tp]
105 syn keyword lftpSettings contained use-mdtm use-mdtm[-overloaded] 92 \ use-mdtm use-mdtm[-overloaded]
106 syn keyword lftpSettings contained use-ml[sd] use-p[ret] use-q[uit] 93 \ use-ml[sd] use-p[ret] use-q[uit]
107 syn keyword lftpSettings contained use-site-c[hmod] use-site-i[dle] 94 \ use-site-c[hmod] use-site-i[dle]
108 syn keyword lftpSettings contained use-site-u[time] use-siz[e] 95 \ use-site-u[time] use-siz[e]
109 syn keyword lftpSettings contained use-st[at] use-te[lnet-iac] 96 \ use-st[at] use-te[lnet-iac]
110 syn keyword lftpSettings contained verify-a[ddress] verify-p[ort] 97 \ verify-a[ddress] verify-p[ort]
111 syn keyword lftpSettings contained w[eb-mode] 98 \ w[eb-mode]
112 " hftp: 99 " hftp:
113 syn keyword lftpSettings contained w[eb-mode] cache prox[y] 100 syn keyword lftpSettings contained w[eb-mode] cache prox[y]
114 syn keyword lftpSettings contained use-au[thorization] use-he[ad] 101 \ use-au[thorization] use-he[ad] use-ty[pe]
115 syn keyword lftpSettings contained use-ty[pe]
116 " http: 102 " http:
117 syn keyword lftpSettings contained accept accept-c[harset] 103 syn keyword lftpSettings contained accept accept-c[harset]
118 syn keyword lftpSettings contained accept-l[anguage] cache coo[kie] 104 \ accept-l[anguage] cache coo[kie]
119 syn keyword lftpSettings contained pos[t-content-type] prox[y] 105 \ pos[t-content-type] prox[y]
120 syn keyword lftpSettings contained put-c[ontent-type] put-m[ethod] 106 \ put-c[ontent-type] put-m[ethod] ref[erer]
121 syn keyword lftpSettings contained ref[erer] set-c[ookies] user[-agent] 107 \ set-c[ookies] user[-agent]
122 " https: 108 " https:
123 syn keyword lftpSettings contained prox[y] 109 syn keyword lftpSettings contained prox[y]
124 " mirror: 110 " mirror:
125 syn keyword lftpSettings contained exc[lude-regex] o[rder] 111 syn keyword lftpSettings contained exc[lude-regex] o[rder]
126 syn keyword lftpSettings contained parallel-d[irectories] 112 \ parallel-d[irectories]
127 syn keyword lftpSettings contained parallel-t[ransfer-count] 113 \ parallel-t[ransfer-count] use-p[get-n]
128 syn keyword lftpSettings contained use-p[get-n]
129 " module: 114 " module:
130 syn keyword lftpSettings contained pat[h] 115 syn keyword lftpSettings contained pat[h]
131 " net: 116 " net:
132 syn keyword lftpSettings contained connection-l[imit] 117 syn keyword lftpSettings contained connection-l[imit]
133 syn keyword lftpSettings contained connection-t[akeover] 118 \ connection-t[akeover] id[le] limit-m[ax]
134 syn keyword lftpSettings contained id[le] limit-m[ax] limit-r[ate] 119 \ limit-r[ate] limit-total-m[ax]
135 syn keyword lftpSettings contained limit-total-m[ax] limit-total-r[ate] 120 \ limit-total-r[ate] max-ret[ries] no-[proxy]
136 syn keyword lftpSettings contained max-ret[ries] no-[proxy] 121 \ pe[rsist-retries] reconnect-interval-b[ase]
137 syn keyword lftpSettings contained pe[rsist-retries] 122 \ reconnect-interval-ma[x]
138 syn keyword lftpSettings contained reconnect-interval-b[ase] 123 \ reconnect-interval-mu[ltiplier]
139 syn keyword lftpSettings contained reconnect-interval-ma[x] 124 \ socket-bind-ipv4 socket-bind-ipv6
140 syn keyword lftpSettings contained reconnect-interval-mu[ltiplier] 125 \ socket-bu[ffer] socket-m[axseg] timeo[ut]
141 syn keyword lftpSettings contained socket-bind-ipv4 socket-bind-ipv6
142 syn keyword lftpSettings contained socket-bu[ffer] socket-m[axseg]
143 syn keyword lftpSettings contained timeo[ut]
144 " sftp: 126 " sftp:
145 syn keyword lftpSettings contained connect[-program] 127 syn keyword lftpSettings contained connect[-program]
146 syn keyword lftpSettings contained max-p[ackets-in-flight] 128 \ max-p[ackets-in-flight] prot[ocol-version]
147 syn keyword lftpSettings contained prot[ocol-version] ser[ver-program] 129 \ ser[ver-program] size-r[ead] size-w[rite]
148 syn keyword lftpSettings contained size-r[ead] size-w[rite]
149 " ssl: 130 " ssl:
150 syn keyword lftpSettings contained ca-f[ile] ca-p[ath] ce[rt-file] 131 syn keyword lftpSettings contained ca-f[ile] ca-p[ath] ce[rt-file]
151 syn keyword lftpSettings contained crl-f[ile] crl-p[ath] k[ey-file] 132 \ crl-f[ile] crl-p[ath] k[ey-file]
152 syn keyword lftpSettings contained verify-c[ertificate] 133 \ verify-c[ertificate]
153 " xfer: 134 " xfer:
154 syn keyword lftpSettings contained clo[bber] dis[k-full-fatal] 135 syn keyword lftpSettings contained clo[bber] dis[k-full-fatal]
155 syn keyword lftpSettings contained eta-p[eriod] eta-t[erse] 136 \ eta-p[eriod] eta-t[erse] mak[e-backup]
156 syn keyword lftpSettings contained mak[e-backup] max-red[irections] 137 \ max-red[irections] ra[te-period]
157 syn keyword lftpSettings contained ra[te-period]
158 138
159 " Define the default highlighting. 139 hi def link lftpComment Comment
160 " For version 5.7 and earlier: only when not done already 140 hi def link lftpTodo Todo
161 " For version 5.8 and later: only when an item doesn't have highlighting yet 141 hi def link lftpString String
162 if version >= 508 || !exists("did_lftp_syn_inits") 142 hi def link lftpNumber Number
163 if version < 508 143 hi def link lftpBoolean Boolean
164 let did_lftp_syn_inits = 1 144 hi def link lftpInterval Number
165 command -nargs=+ HiLink hi link <args> 145 hi def link lftpKeywords Keyword
166 else 146 hi def link lftpSettingsPrefix PreProc
167 command -nargs=+ HiLink hi def link <args> 147 hi def link lftpSettings Type
168 endif
169
170 HiLink lftpComment Comment
171 HiLink lftpTodo Todo
172 HiLink lftpString String
173 HiLink lftpNumber Number
174 HiLink lftpBoolean Boolean
175 HiLink lftpInterval Number
176 HiLink lftpKeywords Keyword
177 HiLink lftpSettingsPrefix PreProc
178 HiLink lftpSettings Type
179 delcommand HiLink
180 endif
181 148
182 let b:current_syntax = "lftp" 149 let b:current_syntax = "lftp"
183 150
184 " vim: set sts=2 sw=2: 151 let &cpo = s:cpo_save
152 unlet s:cpo_save