1" Vim syntax file
2" Language:             Innovation Data Processing upstream.log file
3" Maintainer:           Rob Owens <[email protected]>
4" Latest Revision:      2013-09-19
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 /\( \|(\)\zs\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
22" Profile:
23syn match upstreamlog_Profile /Using default configuration for profile \zs\S\{1,8}\ze/
24syn match upstreamlog_Profile /Now running profile \zs\S\{1,8}\ze/
25syn match upstreamlog_Profile /in profile set \zs\S\{1,8}\ze/
26syn match upstreamlog_Profile /Migrate disk backup from profile \zs\S\{1,8}\ze/
27syn match upstreamlog_Profile /Profileset=\zs\S\{1,8}\ze,/
28syn match upstreamlog_Profile /Vault \(disk\|tape\) backup to vault \d\{1,4} from profile \zs\S\{1,8}\ze/
29syn match upstreamlog_Profile /Profile name \zs\"\S\{1,8}\"/
30syn match upstreamlog_Profile / Profile: \zs\S\{1,8}/
31syn match upstreamlog_Profile /  Profile: \zs\S\{1,8}\ze, /
32syn match upstreamlog_Profile /, profile: \zs\S\{1,8}\ze,/
33syn match upstreamlog_Profile /found Profile: \zs\S\{1,8}\ze,/
34syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/
35syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze  Version date/
36syn match upstreamlog_Profile /Full of \zs\S\{1,8}\ze$/
37syn match upstreamlog_Profile /Incr. of \zs\S\{1,8}\ze$/
38syn match upstreamlog_Profile /Profile=\zs\S\{1,8}\ze,/
39" Target:
40syn region upstreamlog_Target start="Computer: \zs" end="\ze[\]\)]"
41syn region upstreamlog_Target start="Computer name \zs\"" end="\"\ze"
42syn region upstreamlog_Target start="request to registered name \zs" end=" "
43
44
45hi def link upstreamlog_Date	Underlined
46hi def link upstreamlog_MsgD	Type
47hi def link upstreamlog_MsgE	Error
48hi def link upstreamlog_MsgW	Constant
49hi def link upstreamlog_Process	Statement
50hi def link upstreamlog_IPaddr	Identifier
51hi def link upstreamlog_Profile	Identifier
52hi def link upstreamlog_Target	Identifier
53
54let b:current_syntax = "upstreamlog"
55