7
|
1 " ipfilter syntax file
|
|
2 " Language: ipfilter configuration file
|
|
3 " Maintainer: Hendrik Scholz <hendrik@scholz.net>
|
|
4 " Last Change: 2003 May 11
|
|
5 "
|
|
6 " http://raisdorf.net/files/misc/ipfilter.vim
|
|
7 "
|
|
8 " This will also work for OpenBSD pf but there might be some tags that are
|
|
9 " not correctly identified.
|
|
10 " Please send comments to hendrik@scholz.net
|
|
11
|
|
12 " For version 5.x: Clear all syntax items
|
|
13 " For version 6.x: Quit when a syntax file was already loaded
|
|
14 if version < 600
|
|
15 syntax clear
|
|
16 elseif exists("b:current_syntax")
|
|
17 finish
|
|
18 endif
|
|
19
|
|
20 " comments
|
|
21 syn match ipfComment /#/
|
|
22 "syn match ipfComment /#.*/
|
|
23
|
|
24 syn keyword ipfQuick quick log dup-to
|
|
25 syn keyword ipfAny all any
|
|
26 " rule Action type
|
|
27 syn region ipfActionBlock start=/^block/ end=/$/ contains=ipfQuick,ipfAny
|
|
28 syn region ipfActionPass start=/^pass/ end=/$/ contains=ipfQuick,ipfAny
|
|
29 syn region ipfActionMisc start=/^log/ end=/$/ contains=ipfQuick,ipfAny
|
|
30 syn region ipfActionMisc start=/^count/ end=/$/ contains=ipfQuick,ipfAny
|
|
31 syn region ipfActionMisc start=/^skip/ end=/$/ contains=ipfQuick,ipfAny
|
|
32 syn region ipfActionMisc start=/^auth/ end=/$/ contains=ipfQuick,ipfAny
|
|
33 syn region ipfActionMisc start=/^call/ end=/$/ contains=ipfQuick,ipfAny
|
|
34
|
|
35 hi def link ipfComment Comment
|
|
36 hi def link ipfActionBlock String
|
|
37 hi def link ipfActionPass Type
|
|
38 hi def link ipfActionMisc Label
|
|
39 "hi def link ipfQuick Error
|
|
40 hi def link ipfQuick Special
|
|
41 hi def link ipfAny Todo
|
|
42
|
|
43
|