1" Vim syntax file
2" Language:             Innovation Data Processing upstream.log file
3" Maintainer:           Rob Owens <[email protected]>
4" Latest Revision:      2013-06-17
5
6" Quit when a syntax file was already loaded
7if exists("b:current_syntax")
8  finish
9endif
10
11" Date:
12syn match upstreamlog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/
13" Msg Types:
14syn match upstreamlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=upstreamlog_Process skipwhite
15syn match upstreamlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=upstreamlog_Process skipwhite
16syn match upstreamlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=upstreamlog_Process skipwhite
17syn match upstreamlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=upstreamlog_Process skipwhite
18" Processes:
19syn region upstreamlog_Process start="(" end=")" contained
20" IP Address:
21syn match upstreamlog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
22" Profile:
23syn region upstreamlog_Profile start="Profile name \zs" end="\"\S\{1,8}\""
24syn region upstreamlog_Profile start=" Profile: \zs" end="\S\{1,8}"
25syn region upstreamlog_Profile start="  Profile: \zs" end="\ze, "
26syn region upstreamlog_Profile start="Backup Profile: \zs" end="\ze Version date"
27syn region upstreamlog_Profile start="Full of \zs" end="\ze$"
28syn region upstreamlog_Profile start="Incr. of \zs" end="\ze$"
29" Target:
30syn region upstreamlog_Target start="Computer: \zs" end="\ze[\]\)]"
31syn region upstreamlog_Target start="Computer name \zs" end="\ze,"
32
33hi def link upstreamlog_Date	Underlined
34hi def link upstreamlog_MsgD	Type
35hi def link upstreamlog_MsgE	Error
36hi def link upstreamlog_MsgW	Constant
37hi def link upstreamlog_Process	Statement
38hi def link upstreamlog_IPaddr	Identifier
39hi def link upstreamlog_Profile	Identifier
40hi def link upstreamlog_Target	Identifier
41
42let b:current_syntax = "upstreamlog"
43