Mercurial > index.cgi > dotfiles
annotate .vim/syntax/syslog.vim @ 204:49ce64b810a2
Create a Factorio window, even though we're not running it yet
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Tue, 24 Nov 2020 11:25:28 -0500 |
parents | 2bea356b1032 |
children |
rev | line source |
---|---|
41
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
1 " $Id: syslog.vim,v 1.1 2002/09/17 16:10:00 rhiestan Exp $ |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
2 " Vim syntax file |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
3 " Language: syslog log file |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
4 " Maintainer: Bob Hiestand <bob@hiestandfamily.org> |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
5 " Last Change: $Date: 2002/09/17 16:10:00 $ |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
6 " Remark: Add some color to log files produced by sysklogd. |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
7 |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
8 if version < 600 |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
9 syntax clear |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
10 elseif exists("b:current_syntax") |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
11 finish |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
12 endif |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
13 |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
14 syn match syslogText /.*$/ |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
15 syn match syslogFacility /.\{-1,}:/ nextgroup=syslogText skipwhite |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
16 syn match syslogHost /\S\+/ nextgroup=syslogFacility,syslogText skipwhite |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
17 syn match syslogDate /^.\{-}\d\d:\d\d:\d\d/ nextgroup=syslogHost skipwhite |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
18 |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
19 if !exists("did_syslog_syntax_inits") |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
20 let did_syslog_syntax_inits = 1 |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
21 hi link syslogDate Comment |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
22 hi link syslogHost Type |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
23 hi link syslogFacility Statement |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
24 hi link syslogText String |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
25 endif |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
26 |
2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
27 let b:current_syntax="syslog" |