annotate runtime/syntax/ipfilter.vim @ 6321:bfecd68c04dd

Added tag v7-4-493 for changeset a0daa5feaccb
author Bram Moolenaar <bram@vim.org>
date Fri, 31 Oct 2014 19:51:36 +0100
parents 5cc0aca13a3f
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " ipfilter syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: ipfilter configuration file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Hendrik Scholz <hendrik@scholz.net>
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
4 " Last Change: 2005 Jan 27
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
6 " http://www.wormulon.net/files/misc/ipfilter.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " This will also work for OpenBSD pf but there might be some tags that are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " not correctly identified.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Please send comments to hendrik@scholz.net
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
20 " Comment
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
21 syn match IPFComment /#.*$/ contains=ipfTodo
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
22 syn keyword IPFTodo TODO XXX FIXME contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
24 syn keyword IPFActionBlock block
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
25 syn keyword IPFActionPass pass
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
26 syn keyword IPFProto tcp udp icmp
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
27 syn keyword IPFSpecial quick log first
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
28 " how could we use keyword for words with '-' ?
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
29 syn match IPFSpecial /return-rst/
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
30 syn match IPFSpecial /dup-to/
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
31 "syn match IPFSpecial /icmp-type unreach/
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
32 syn keyword IPFAny all any
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
33 syn match IPFIPv4 /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
34 syn match IPFNetmask /\/\d\+/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
36 " service name constants
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
37 syn keyword IPFService auth bgp domain finger ftp http https ident
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
38 syn keyword IPFService imap irc isakmp kerberos mail nameserver nfs
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
39 syn keyword IPFService nntp ntp pop3 portmap pptp rpcbind rsync smtp
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
40 syn keyword IPFService snmp snmptrap socks ssh sunrpc syslog telnet
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
41 syn keyword IPFService tftp www
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
42
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
43 " Comment
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
44 hi def link IPFComment Comment
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
45 hi def link IPFTodo Todo
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
46
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
47 hi def link IPFService Constant
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
48
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
49 hi def link IPFAction Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 hi def link ipfActionBlock String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 hi def link ipfActionPass Type
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
52 hi def link IPFSpecial Statement
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
53 hi def link IPFIPv4 Label
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
54 hi def link IPFNetmask String
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
55 hi def link IPFAny Statement
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 128
diff changeset
56 hi def link IPFProto Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57