Mercurial > vim
annotate runtime/syntax/pf.vim @ 9682:a98607bb756c v7.4.2117
commit https://github.com/vim/vim/commit/f2c4c391192cab6e923b1a418d4af09106fba25f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 29 20:50:24 2016 +0200
patch 7.4.2117
Problem: Deleting an augroup that still has autocmds does not give a
warning. The next defined augroup takes its place.
Solution: Give a warning and prevent the index being used for another group
name.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jul 2016 21:00:08 +0200 |
parents | be72f4201a1d |
children | 2a4a2dc35c55 |
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> | |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
5 " Last Change: 2016 Jul 06 |
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 | |
11 setlocal foldmethod=syntax | |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
12 syn iskeyword @,48-57,_,-,+ |
7 | 13 syn sync fromstart |
14 | |
4264 | 15 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
|
16 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
|
17 syn keyword pfCmd queue set table |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
18 syn match pfCmd /^\s*load\sanchor\>/ |
7 | 19 syn keyword pfTodo TODO XXX contained |
20 syn keyword pfWildAddr all any | |
21 syn match pfComment /#.*$/ contains=pfTodo | |
22 syn match pfCont /\\$/ | |
23 syn match pfErrClose /}/ | |
24 syn match pfIPv4 /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ | |
25 syn match pfIPv6 /[a-fA-F0-9:]*::[a-fA-F0-9:.]*/ | |
26 syn match pfIPv6 /[a-fA-F0-9:]\+:[a-fA-F0-9:]\+:[a-fA-F0-9:.]\+/ | |
27 syn match pfNetmask /\/\d\+/ | |
28 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
|
29 syn match pfTable /<\s*[a-zA-Z0-9_:][a-zA-Z0-9_:.-]*\s*>/ |
7 | 30 syn match pfVar /$[a-zA-Z][a-zA-Z0-9_]*/ |
31 syn match pfVarAssign /^\s*[a-zA-Z][a-zA-Z0-9_]*\s*=/me=e-1 | |
32 syn region pfFold1 start=/^#\{1}>/ end=/^#\{1,3}>/me=s-1 transparent fold | |
33 syn region pfFold2 start=/^#\{2}>/ end=/^#\{2,3}>/me=s-1 transparent fold | |
34 syn region pfFold3 start=/^#\{3}>/ end=/^#\{3}>/me=s-1 transparent fold | |
35 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
|
36 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
|
37 syn region pfString start=/'/ skip=/\\'/ end=/'/ contains=pfIPv4,pfIPv6,pfNetmask,pfTable,pfVar |
7 | 38 |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
39 syn keyword pfService 802-11-iapp Microsoft-SQL-Monitor |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
40 syn keyword pfService Microsoft-SQL-Server NeXTStep NextStep |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
41 syn keyword pfService afpovertcp afs3-bos afs3-callback afs3-errors |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
42 syn keyword pfService afs3-fileserver afs3-kaserver afs3-prserver |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
43 syn keyword pfService afs3-rmtsys afs3-update afs3-vlserver |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
44 syn keyword pfService afs3-volser amt-redir-tcp amt-redir-tls |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
45 syn keyword pfService amt-soap-http amt-soap-https asf-rmcp at-echo |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
46 syn keyword pfService at-nbp at-rtmp at-zis auth authentication |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
47 syn keyword pfService bfd-control bfd-echo bftp bgp bgpd biff bootpc |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
48 syn keyword pfService bootps canna cddb cddbp chargen chat cmd |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
49 syn keyword pfService cmip-agent cmip-man comsat conference |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
50 syn keyword pfService conserver courier csnet-ns cso-ns cvspserver |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
51 syn keyword pfService daap datametrics daytime dhcpd-sync |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
52 syn keyword pfService dhcpv6-client dhcpv6-server discard domain |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
53 syn keyword pfService echo efs eklogin ekshell ekshell2 epmap eppc |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
54 syn keyword pfService exec finger ftp ftp-data git gopher hostname |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
55 syn keyword pfService hostnames hprop http https hunt hylafax iapp |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
56 syn keyword pfService icb ident imap imap2 imap3 imaps ingreslock |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
57 syn keyword pfService ipp iprop ipsec-msft ipsec-nat-t ipx irc |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
58 syn keyword pfService isakmp iscsi isisd iso-tsap kauth kdc kerberos |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
59 syn keyword pfService kerberos-adm kerberos-iv kerberos-sec |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
60 syn keyword pfService kerberos_master kf kip klogin kpasswd kpop |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
61 syn keyword pfService krb524 krb_prop krbupdate krcmd kreg kshell kx |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
62 syn keyword pfService l2tp ldap ldaps ldp link login mail mdns |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
63 syn keyword pfService mdnsresponder microsoft-ds ms-sql-m ms-sql-s |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
64 syn keyword pfService msa msp mtp mysql name nameserver netbios-dgm |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
65 syn keyword pfService netbios-ns netbios-ssn netnews netplan netrjs |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
66 syn keyword pfService netstat netwall newdate nextstep nfs nfsd |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
67 syn keyword pfService nicname nnsp nntp ntalk ntp null openwebnet |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
68 syn keyword pfService ospf6d ospfapi ospfd photuris pop2 pop3 pop3pw |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
69 syn keyword pfService pop3s poppassd portmap postgresql postoffice |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
70 syn keyword pfService pptp presence printer prospero prospero-np |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
71 syn keyword pfService puppet pwdgen qotd quote radacct radius |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
72 syn keyword pfService radius-acct rdp readnews remotefs resource rfb |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
73 syn keyword pfService rfe rfs rfs_server ripd ripng rje rkinit rlp |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
74 syn keyword pfService routed router rpc rpcbind rsync rtelnet rtsp |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
75 syn keyword pfService sa-msg-port sane-port sftp shell sieve silc |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
76 syn keyword pfService sink sip smtp smtps smux snmp snmp-trap |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
77 syn keyword pfService snmptrap snpp socks source spamd spamd-cfg |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
78 syn keyword pfService spamd-sync spooler spop3 ssdp ssh submission |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
79 syn keyword pfService sunrpc supdup supfiledbg supfilesrv support |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
80 syn keyword pfService svn svrloc swat syslog syslog-tls systat |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
81 syn keyword pfService tacacs tacas+ talk tap tcpmux telnet tempo |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
82 syn keyword pfService tftp time timed timeserver timserver tsap |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
83 syn keyword pfService ttylink ttytst ub-dns-control ulistserv untp |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
84 syn keyword pfService usenet users uucp uucp-path uucpd vnc vxlan |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
85 syn keyword pfService wais webster who whod whois www x400 x400-snd |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
86 syn keyword pfService xcept xdmcp xmpp-bosh xmpp-client xmpp-server |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
87 syn keyword pfService z3950 zabbix-agent zabbix-trapper zebra |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
88 syn keyword pfService zebrasrv |
7 | 89 |
9464
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
90 hi def link pfCmd Statement |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
91 hi def link pfComment Comment |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
92 hi def link pfCont Statement |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
93 hi def link pfErrClose Error |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
94 hi def link pfIPv4 Type |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
95 hi def link pfIPv6 Type |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
96 hi def link pfNetmask Constant |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
97 hi def link pfNum Constant |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
98 hi def link pfService Constant |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
99 hi def link pfString String |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
100 hi def link pfTable Identifier |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
101 hi def link pfTodo Todo |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
102 hi def link pfVar Identifier |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
103 hi def link pfVarAssign Identifier |
be72f4201a1d
commit https://github.com/vim/vim/commit/063b9d15abea041a5bfff3ffc4e219e26fd1d4fa
Christian Brabandt <cb@256bit.org>
parents:
4264
diff
changeset
|
104 hi def link pfWildAddr Type |
7 | 105 |
106 let b:current_syntax = "pf" |