blob: 1439bdffe65e694d0add6ee1b07c32f28fa900f6 [file] [log] [blame]
Bram Moolenaar56b45b92013-06-24 22:22:18 +02001" Vim syntax file
2" Language: Innovation Data Processing upstream.log file
3" Maintainer: Rob Owens <rowens@fdrinnovation.com>
Bram Moolenaard5d015d2013-11-03 21:14:31 +01004" Latest Revision: 2013-09-19
Bram Moolenaar56b45b92013-06-24 22:22:18 +02005
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:
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020021syn match upstreamlog_IPaddr /\( \|(\)\zs\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
Bram Moolenaar56b45b92013-06-24 22:22:18 +020022" Profile:
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020023syn 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,/
Bram Moolenaard5d015d2013-11-03 21:14:31 +010034syn 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/
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020036syn 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,/
Bram Moolenaar56b45b92013-06-24 22:22:18 +020039" Target:
40syn region upstreamlog_Target start="Computer: \zs" end="\ze[\]\)]"
Bram Moolenaard5d015d2013-11-03 21:14:31 +010041syn region upstreamlog_Target start="Computer name \zs\"" end="\"\ze"
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020042syn region upstreamlog_Target start="request to registered name \zs" end=" "
43
Bram Moolenaar56b45b92013-06-24 22:22:18 +020044
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"