comparison .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
comparison
equal deleted inserted replaced
40:21cf7b5fa0d6 41:2bea356b1032
1 " $Id: syslog.vim,v 1.1 2002/09/17 16:10:00 rhiestan Exp $
2 " Vim syntax file
3 " Language: syslog log file
4 " Maintainer: Bob Hiestand <bob@hiestandfamily.org>
5 " Last Change: $Date: 2002/09/17 16:10:00 $
6 " Remark: Add some color to log files produced by sysklogd.
7
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish
12 endif
13
14 syn match syslogText /.*$/
15 syn match syslogFacility /.\{-1,}:/ nextgroup=syslogText skipwhite
16 syn match syslogHost /\S\+/ nextgroup=syslogFacility,syslogText skipwhite
17 syn match syslogDate /^.\{-}\d\d:\d\d:\d\d/ nextgroup=syslogHost skipwhite
18
19 if !exists("did_syslog_syntax_inits")
20 let did_syslog_syntax_inits = 1
21 hi link syslogDate Comment
22 hi link syslogHost Type
23 hi link syslogFacility Statement
24 hi link syslogText String
25 endif
26
27 let b:current_syntax="syslog"