1" ipfilter syntax file 2" Language: ipfilter configuration file 3" Maintainer: Hendrik Scholz <[email protected]> 4" Last Change: 2005 Jan 23 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 [email protected] 11 12" For version 5.x: Clear all syntax items 13" For version 6.x: Quit when a syntax file was already loaded 14if version < 600 15 syntax clear 16elseif exists("b:current_syntax") 17 finish 18endif 19 20" comments 21"syn match ipfComment /#/ 22syn match ipfComment /#.*/ 23 24syn keyword ipfQuick quick log dup-to 25syn keyword ipfAny all any 26" rule Action type 27syn region ipfActionBlock start=/^block/ end=/$/ contains=ipfQuick,ipfAny 28syn region ipfActionPass start=/^pass/ end=/$/ contains=ipfQuick,ipfAny 29syn region ipfActionMisc start=/^log/ end=/$/ contains=ipfQuick,ipfAny 30syn region ipfActionMisc start=/^count/ end=/$/ contains=ipfQuick,ipfAny 31syn region ipfActionMisc start=/^skip/ end=/$/ contains=ipfQuick,ipfAny 32syn region ipfActionMisc start=/^auth/ end=/$/ contains=ipfQuick,ipfAny 33syn region ipfActionMisc start=/^call/ end=/$/ contains=ipfQuick,ipfAny 34 35hi def link ipfComment Comment 36hi def link ipfActionBlock String 37hi def link ipfActionPass Type 38hi def link ipfActionMisc Label 39"hi def link ipfQuick Error 40hi def link ipfQuick Special 41hi def link ipfAny Statement 42 43 44