57 lines · 1.7 KB · Text
RawDownload
" ipfilter syntax file" Language: ipfilter configuration file" Maintainer: Hendrik Scholz <hendrik@scholz.net>" Last Change: 2005 Jan 27"" http://www.wormulon.net/files/misc/ipfilter.vim"" This will also work for OpenBSD pf but there might be some tags that are" not correctly identified." Please send comments to hendrik@scholz.net " For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600  syntax clearelseif exists("b:current_syntax")  finishendif " Commentsyn match	IPFComment	/#.*$/	contains=ipfTodosyn keyword	IPFTodo		TODO XXX FIXME contained syn keyword IPFActionBlock	blocksyn keyword IPFActionPass	passsyn keyword	IPFProto	tcp udp icmpsyn keyword	IPFSpecial	quick log first" how could we use keyword for words with '-' ?syn match	IPFSpecial	/return-rst/syn match	IPFSpecial	/dup-to/"syn match	IPFSpecial	/icmp-type unreach/syn keyword IPFAny		all anysyn match	IPFIPv4		/\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/syn match	IPFNetmask	/\/\d\+/ " service name constantssyn keyword IPFService	auth bgp domain finger ftp http https identsyn keyword IPFService	imap irc isakmp kerberos mail nameserver nfssyn keyword IPFService	nntp ntp pop3 portmap pptp rpcbind rsync smtpsyn keyword IPFService	snmp snmptrap socks ssh sunrpc syslog telnetsyn keyword IPFService	tftp www " Commenthi def link IPFComment	Commenthi def link IPFTodo		Todo hi def link IPFService	Constant hi def link IPFAction	Typehi def link ipfActionBlock	Stringhi def link ipfActionPass	Typehi def link IPFSpecial	Statementhi def link IPFIPv4		Labelhi def link IPFNetmask	Stringhi def link IPFAny		Statementhi def link IPFProto	Identifier