Mercurial > vim
annotate runtime/syntax/pf.vim @ 17549:e5dabc127143 v8.1.1772
patch 8.1.1772: options test still fails on MS-Windows
commit https://github.com/vim/vim/commit/b78564d0221089e6dfc9c9d58239c18b991ca9fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 28 19:24:36 2019 +0200
patch 8.1.1772: options test still fails on MS-Windows
Problem: Options test still fails on MS-Windows.
Solution: Check buffer-local value of 'completeslash'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Jul 2019 19:30:04 +0200 |
parents | 2a4a2dc35c55 |
children |
rev | line source |
---|---|
7 | 1 " pf syntax file |
4264 | 2 " Language: OpenBSD packet filter configuration (pf.conf) |
3 " Original Author: Camiel Dobbelaar <cd@sentia.nl> | |
4 " Maintainer: Lauri Tirkkonen <lotheac@iki.fi> | |
14372 | 5 " Last Change: 2018 Jul 16 |
7 | 6 |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
14372 | 11 let b:current_syntax = "pf" |
7 | 12 setlocal foldmethod=syntax |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
13 syn iskeyword @,48-57,_,-,+ |
7 | 14 syn sync fromstart |
15 | |
4264 | 16 syn cluster pfNotLS contains=pfTodo,pfVarAssign |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
17 syn keyword pfCmd anchor antispoof block include match pass queue |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
18 syn keyword pfCmd queue set table |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
19 syn match pfCmd /^\s*load\sanchor\>/ |
7 | 20 syn keyword pfTodo TODO XXX contained |
14372 | 21 syn keyword pfWildAddr any no-route urpf-failed self |
7 | 22 syn match pfComment /#.*$/ contains=pfTodo |
23 syn match pfCont /\\$/ | |
24 syn match pfErrClose /}/ | |
25 syn match pfIPv4 /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ | |
26 syn match pfIPv6 /[a-fA-F0-9:]*::[a-fA-F0-9:.]*/ | |
27 syn match pfIPv6 /[a-fA-F0-9:]\+:[a-fA-F0-9:]\+:[a-fA-F0-9:.]\+/ | |
28 syn match pfNetmask /\/\d\+/ | |
29 syn match pfNum /[a-zA-Z0-9_:.]\@<!\d\+[a-zA-Z0-9_:.]\@!/ | |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
30 syn match pfTable /<\s*[a-zA-Z0-9_:][a-zA-Z0-9_:.-]*\s*>/ |
7 | 31 syn match pfVar /$[a-zA-Z][a-zA-Z0-9_]*/ |
32 syn match pfVarAssign /^\s*[a-zA-Z][a-zA-Z0-9_]*\s*=/me=e-1 | |
33 syn region pfFold1 start=/^#\{1}>/ end=/^#\{1,3}>/me=s-1 transparent fold | |
34 syn region pfFold2 start=/^#\{2}>/ end=/^#\{2,3}>/me=s-1 transparent fold | |
35 syn region pfFold3 start=/^#\{3}>/ end=/^#\{3}>/me=s-1 transparent fold | |
36 syn region pfList start=/{/ end=/}/ transparent contains=ALLBUT,pfErrClose,@pfNotLS | |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
37 syn region pfString start=/"/ skip=/\\"/ end=/"/ contains=pfIPv4,pfIPv6,pfNetmask,pfTable,pfVar |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
38 syn region pfString start=/'/ skip=/\\'/ end=/'/ contains=pfIPv4,pfIPv6,pfNetmask,pfTable,pfVar |
7 | 39 |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
40 hi def link pfCmd Statement |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
41 hi def link pfComment Comment |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
42 hi def link pfCont Statement |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
43 hi def link pfErrClose Error |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
44 hi def link pfIPv4 Type |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
45 hi def link pfIPv6 Type |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
46 hi def link pfNetmask Constant |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
47 hi def link pfNum Constant |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
48 hi def link pfService Constant |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
49 hi def link pfString String |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
50 hi def link pfTable Identifier |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
51 hi def link pfTodo Todo |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
52 hi def link pfVar Identifier |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
53 hi def link pfVarAssign Identifier |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
54 hi def link pfWildAddr Type |
7 | 55 |
14372 | 56 " from OpenBSD src/etc/services r1.95 |
57 syn keyword pfService 802-11-iapp | |
58 syn keyword pfService Microsoft-SQL-Monitor | |
59 syn keyword pfService Microsoft-SQL-Server | |
60 syn keyword pfService NeXTStep | |
61 syn keyword pfService NextStep | |
62 syn keyword pfService afpovertcp | |
63 syn keyword pfService afs3-bos | |
64 syn keyword pfService afs3-callback | |
65 syn keyword pfService afs3-errors | |
66 syn keyword pfService afs3-fileserver | |
67 syn keyword pfService afs3-kaserver | |
68 syn keyword pfService afs3-prserver | |
69 syn keyword pfService afs3-rmtsys | |
70 syn keyword pfService afs3-update | |
71 syn keyword pfService afs3-vlserver | |
72 syn keyword pfService afs3-volser | |
73 syn keyword pfService amt-redir-tcp | |
74 syn keyword pfService amt-redir-tls | |
75 syn keyword pfService amt-soap-http | |
76 syn keyword pfService amt-soap-https | |
77 syn keyword pfService asf-rmcp | |
78 syn keyword pfService at-echo | |
79 syn keyword pfService at-nbp | |
80 syn keyword pfService at-rtmp | |
81 syn keyword pfService at-zis | |
82 syn keyword pfService auth | |
83 syn keyword pfService authentication | |
84 syn keyword pfService bfd-control | |
85 syn keyword pfService bfd-echo | |
86 syn keyword pfService bftp | |
87 syn keyword pfService bgp | |
88 syn keyword pfService bgpd | |
89 syn keyword pfService biff | |
90 syn keyword pfService bootpc | |
91 syn keyword pfService bootps | |
92 syn keyword pfService canna | |
93 syn keyword pfService cddb | |
94 syn keyword pfService cddbp | |
95 syn keyword pfService chargen | |
96 syn keyword pfService chat | |
97 syn keyword pfService cmd | |
98 syn keyword pfService cmip-agent | |
99 syn keyword pfService cmip-man | |
100 syn keyword pfService comsat | |
101 syn keyword pfService conference | |
102 syn keyword pfService conserver | |
103 syn keyword pfService courier | |
104 syn keyword pfService csnet-ns | |
105 syn keyword pfService cso-ns | |
106 syn keyword pfService cvspserver | |
107 syn keyword pfService daap | |
108 syn keyword pfService datametrics | |
109 syn keyword pfService daytime | |
110 syn keyword pfService dhcpd-sync | |
111 syn keyword pfService dhcpv6-client | |
112 syn keyword pfService dhcpv6-server | |
113 syn keyword pfService discard | |
114 syn keyword pfService domain | |
115 syn keyword pfService echo | |
116 syn keyword pfService efs | |
117 syn keyword pfService eklogin | |
118 syn keyword pfService ekshell | |
119 syn keyword pfService ekshell2 | |
120 syn keyword pfService epmap | |
121 syn keyword pfService eppc | |
122 syn keyword pfService exec | |
123 syn keyword pfService finger | |
124 syn keyword pfService ftp | |
125 syn keyword pfService ftp-data | |
126 syn keyword pfService git | |
127 syn keyword pfService gopher | |
128 syn keyword pfService gre-in-udp | |
129 syn keyword pfService gre-udp-dtls | |
130 syn keyword pfService hostname | |
131 syn keyword pfService hostnames | |
132 syn keyword pfService hprop | |
133 syn keyword pfService http | |
134 syn keyword pfService https | |
135 syn keyword pfService hunt | |
136 syn keyword pfService hylafax | |
137 syn keyword pfService iapp | |
138 syn keyword pfService icb | |
139 syn keyword pfService ident | |
140 syn keyword pfService imap | |
141 syn keyword pfService imap2 | |
142 syn keyword pfService imap3 | |
143 syn keyword pfService imaps | |
144 syn keyword pfService ingreslock | |
145 syn keyword pfService ipp | |
146 syn keyword pfService iprop | |
147 syn keyword pfService ipsec-msft | |
148 syn keyword pfService ipsec-nat-t | |
149 syn keyword pfService ipx | |
150 syn keyword pfService irc | |
151 syn keyword pfService isakmp | |
152 syn keyword pfService iscsi | |
153 syn keyword pfService isisd | |
154 syn keyword pfService iso-tsap | |
155 syn keyword pfService kauth | |
156 syn keyword pfService kdc | |
157 syn keyword pfService kerberos | |
158 syn keyword pfService kerberos-adm | |
159 syn keyword pfService kerberos-iv | |
160 syn keyword pfService kerberos-sec | |
161 syn keyword pfService kerberos_master | |
162 syn keyword pfService kf | |
163 syn keyword pfService kip | |
164 syn keyword pfService klogin | |
165 syn keyword pfService kpasswd | |
166 syn keyword pfService kpop | |
167 syn keyword pfService krb524 | |
168 syn keyword pfService krb_prop | |
169 syn keyword pfService krbupdate | |
170 syn keyword pfService krcmd | |
171 syn keyword pfService kreg | |
172 syn keyword pfService kshell | |
173 syn keyword pfService kx | |
174 syn keyword pfService l2tp | |
175 syn keyword pfService ldap | |
176 syn keyword pfService ldaps | |
177 syn keyword pfService ldp | |
178 syn keyword pfService link | |
179 syn keyword pfService login | |
180 syn keyword pfService mail | |
181 syn keyword pfService mdns | |
182 syn keyword pfService mdnsresponder | |
183 syn keyword pfService microsoft-ds | |
184 syn keyword pfService ms-sql-m | |
185 syn keyword pfService ms-sql-s | |
186 syn keyword pfService msa | |
187 syn keyword pfService msp | |
188 syn keyword pfService mtp | |
189 syn keyword pfService mysql | |
190 syn keyword pfService name | |
191 syn keyword pfService nameserver | |
192 syn keyword pfService netbios-dgm | |
193 syn keyword pfService netbios-ns | |
194 syn keyword pfService netbios-ssn | |
195 syn keyword pfService netnews | |
196 syn keyword pfService netplan | |
197 syn keyword pfService netrjs | |
198 syn keyword pfService netstat | |
199 syn keyword pfService netwall | |
200 syn keyword pfService newdate | |
201 syn keyword pfService nextstep | |
202 syn keyword pfService nfs | |
203 syn keyword pfService nfsd | |
204 syn keyword pfService nicname | |
205 syn keyword pfService nnsp | |
206 syn keyword pfService nntp | |
207 syn keyword pfService ntalk | |
208 syn keyword pfService ntp | |
209 syn keyword pfService null | |
210 syn keyword pfService openwebnet | |
211 syn keyword pfService ospf6d | |
212 syn keyword pfService ospfapi | |
213 syn keyword pfService ospfd | |
214 syn keyword pfService photuris | |
215 syn keyword pfService pop2 | |
216 syn keyword pfService pop3 | |
217 syn keyword pfService pop3pw | |
218 syn keyword pfService pop3s | |
219 syn keyword pfService poppassd | |
220 syn keyword pfService portmap | |
221 syn keyword pfService postgresql | |
222 syn keyword pfService postoffice | |
223 syn keyword pfService pptp | |
224 syn keyword pfService presence | |
225 syn keyword pfService printer | |
226 syn keyword pfService prospero | |
227 syn keyword pfService prospero-np | |
228 syn keyword pfService puppet | |
229 syn keyword pfService pwdgen | |
230 syn keyword pfService qotd | |
231 syn keyword pfService quote | |
232 syn keyword pfService radacct | |
233 syn keyword pfService radius | |
234 syn keyword pfService radius-acct | |
235 syn keyword pfService rdp | |
236 syn keyword pfService readnews | |
237 syn keyword pfService remotefs | |
238 syn keyword pfService resource | |
239 syn keyword pfService rfb | |
240 syn keyword pfService rfe | |
241 syn keyword pfService rfs | |
242 syn keyword pfService rfs_server | |
243 syn keyword pfService ripd | |
244 syn keyword pfService ripng | |
245 syn keyword pfService rje | |
246 syn keyword pfService rkinit | |
247 syn keyword pfService rlp | |
248 syn keyword pfService routed | |
249 syn keyword pfService router | |
250 syn keyword pfService rpc | |
251 syn keyword pfService rpcbind | |
252 syn keyword pfService rsync | |
253 syn keyword pfService rtelnet | |
254 syn keyword pfService rtsp | |
255 syn keyword pfService sa-msg-port | |
256 syn keyword pfService sane-port | |
257 syn keyword pfService sftp | |
258 syn keyword pfService shell | |
259 syn keyword pfService sieve | |
260 syn keyword pfService silc | |
261 syn keyword pfService sink | |
262 syn keyword pfService sip | |
263 syn keyword pfService smtp | |
264 syn keyword pfService smtps | |
265 syn keyword pfService smux | |
266 syn keyword pfService snmp | |
267 syn keyword pfService snmp-trap | |
268 syn keyword pfService snmptrap | |
269 syn keyword pfService snpp | |
270 syn keyword pfService socks | |
271 syn keyword pfService source | |
272 syn keyword pfService spamd | |
273 syn keyword pfService spamd-cfg | |
274 syn keyword pfService spamd-sync | |
275 syn keyword pfService spooler | |
276 syn keyword pfService spop3 | |
277 syn keyword pfService ssdp | |
278 syn keyword pfService ssh | |
279 syn keyword pfService submission | |
280 syn keyword pfService sunrpc | |
281 syn keyword pfService supdup | |
282 syn keyword pfService supfiledbg | |
283 syn keyword pfService supfilesrv | |
284 syn keyword pfService support | |
285 syn keyword pfService svn | |
286 syn keyword pfService svrloc | |
287 syn keyword pfService swat | |
288 syn keyword pfService syslog | |
289 syn keyword pfService syslog-tls | |
290 syn keyword pfService systat | |
291 syn keyword pfService tacacs | |
292 syn keyword pfService tacas+ | |
293 syn keyword pfService talk | |
294 syn keyword pfService tap | |
295 syn keyword pfService tcpmux | |
296 syn keyword pfService telnet | |
297 syn keyword pfService tempo | |
298 syn keyword pfService tftp | |
299 syn keyword pfService time | |
300 syn keyword pfService timed | |
301 syn keyword pfService timeserver | |
302 syn keyword pfService timserver | |
303 syn keyword pfService tsap | |
304 syn keyword pfService ttylink | |
305 syn keyword pfService ttytst | |
306 syn keyword pfService ub-dns-control | |
307 syn keyword pfService ulistserv | |
308 syn keyword pfService untp | |
309 syn keyword pfService usenet | |
310 syn keyword pfService users | |
311 syn keyword pfService uucp | |
312 syn keyword pfService uucp-path | |
313 syn keyword pfService uucpd | |
314 syn keyword pfService vnc | |
315 syn keyword pfService vxlan | |
316 syn keyword pfService wais | |
317 syn keyword pfService webster | |
318 syn keyword pfService who | |
319 syn keyword pfService whod | |
320 syn keyword pfService whois | |
321 syn keyword pfService www | |
322 syn keyword pfService x400 | |
323 syn keyword pfService x400-snd | |
324 syn keyword pfService xcept | |
325 syn keyword pfService xdmcp | |
326 syn keyword pfService xmpp-bosh | |
327 syn keyword pfService xmpp-client | |
328 syn keyword pfService xmpp-server | |
329 syn keyword pfService z3950 | |
330 syn keyword pfService zabbix-agent | |
331 syn keyword pfService zabbix-trapper | |
332 syn keyword pfService zebra | |
333 syn keyword pfService zebrasrv |