" Language: hosts_access " Maintainer: Guido Guenther " Created: 00-06-15 " ToDo: check for missing commas! " ipaddress/netmask sanity checking " hostname sanity checking " License: GPL " " Send Patches! " syntax highlighting for hosts.{access,deny} " " add the following to your .vimrc to make this work: " augroup host_access " autocmd! " autocmd BufRead hosts.allow source ~/.vim/hosts_access.vim " autocmd BufRead hosts.deny source ~/.vim/hosts_access.vim " augroup END " Remove any old syntax stuff hanging around syn clear syn match comment "^#.*" syn match service "^\s*\(\w\|\.\|,\)\{1,}\s*:" syn match eolError "\\\s\{1,}" syn match allow ":\s*ALLOW" syn match deny ":\s*DENY" syn match all "\s\{1,}ALL\s\{1,}" syn match spawn "\s\{1,}spawn\s*(.*)" syn match missingbs ",\s*$" if !exists("did_hosts_access_syntax_inits") let did_hosts_access_syntax_inits = 1 hi link spawn Statement hi link service Statement hi link eolError Error hi link missingbs Error hi link all Special hi link deny Special hi link allow Type hi link comment comment endif let b:current_syntax = "hosts_access"