annotate runtime/syntax/ipfilter.vim @ 40:f1d2a58883b9 v7.0024

updated for version 7.0024
author vimboss
date Fri, 24 Dec 2004 14:35:23 +0000
parents 3fc0f57ecb91
children 8def260d486d
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>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " http://raisdorf.net/files/misc/ipfilter.vim
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match ipfComment /#/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 "syn match ipfComment /#.*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword ipfQuick quick log dup-to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword ipfAny all any
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " rule Action type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region ipfActionBlock start=/^block/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region ipfActionPass start=/^pass/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region ipfActionMisc start=/^log/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region ipfActionMisc start=/^count/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn region ipfActionMisc start=/^skip/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region ipfActionMisc start=/^auth/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region ipfActionMisc start=/^call/ end=/$/ contains=ipfQuick,ipfAny
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 hi def link ipfComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 hi def link ipfActionBlock String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 hi def link ipfActionPass Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 hi def link ipfActionMisc Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 "hi def link ipfQuick Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 hi def link ipfQuick Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 hi def link ipfAny Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43