1" ipfilter syntax file 2" Language: ipfilter configuration file 3" Maintainer: Hendrik Scholz <[email protected]> 4" Last Change: 2005 Jan 27 5" 6" http://www.wormulon.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" Comment 21syn match IPFComment /#.*$/ contains=ipfTodo 22syn keyword IPFTodo TODO XXX FIXME contained 23 24syn keyword IPFActionBlock block 25syn keyword IPFActionPass pass 26syn keyword IPFProto tcp udp icmp 27syn keyword IPFSpecial quick log first 28" how could we use keyword for words with '-' ? 29syn match IPFSpecial /return-rst/ 30syn match IPFSpecial /dup-to/ 31"syn match IPFSpecial /icmp-type unreach/ 32syn keyword IPFAny all any 33syn match IPFIPv4 /\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ 34syn match IPFNetmask /\/\d\+/ 35 36" service name constants 37syn keyword IPFService auth bgp domain finger ftp http https ident 38syn keyword IPFService imap irc isakmp kerberos mail nameserver nfs 39syn keyword IPFService nntp ntp pop3 portmap pptp rpcbind rsync smtp 40syn keyword IPFService snmp snmptrap socks ssh sunrpc syslog telnet 41syn keyword IPFService tftp www 42 43" Comment 44hi def link IPFComment Comment 45hi def link IPFTodo Todo 46 47hi def link IPFService Constant 48 49hi def link IPFAction Type 50hi def link ipfActionBlock String 51hi def link ipfActionPass Type 52hi def link IPFSpecial Statement 53hi def link IPFIPv4 Label 54hi def link IPFNetmask String 55hi def link IPFAny Statement 56hi def link IPFProto Identifier 57 58