Mercurial > index.cgi > dotfiles
diff .vim/syntax/syslog.vim @ 41:2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
* Brought ~/.vim into repository (some syntax hilighting add-ons, gnupg
plugin)
* Hard-coded paths for aliases so as not to conflict with GNU coreutils from a
Macports install
* Removed dvra alias
* Added $VNCVIEWER and changed VNC-type aliases to use it
* Added syrinx aliases
* Added syrinx to toodledo targets
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Thu, 17 Jun 2010 16:29:11 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.vim/syntax/syslog.vim Thu Jun 17 16:29:11 2010 +0000 @@ -0,0 +1,27 @@ +" $Id: syslog.vim,v 1.1 2002/09/17 16:10:00 rhiestan Exp $ +" Vim syntax file +" Language: syslog log file +" Maintainer: Bob Hiestand <bob@hiestandfamily.org> +" Last Change: $Date: 2002/09/17 16:10:00 $ +" Remark: Add some color to log files produced by sysklogd. + +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +syn match syslogText /.*$/ +syn match syslogFacility /.\{-1,}:/ nextgroup=syslogText skipwhite +syn match syslogHost /\S\+/ nextgroup=syslogFacility,syslogText skipwhite +syn match syslogDate /^.\{-}\d\d:\d\d:\d\d/ nextgroup=syslogHost skipwhite + +if !exists("did_syslog_syntax_inits") + let did_syslog_syntax_inits = 1 + hi link syslogDate Comment + hi link syslogHost Type + hi link syslogFacility Statement + hi link syslogText String +endif + +let b:current_syntax="syslog"