blob: a112340d12b32f3e7c79543e1d8c566af48c1fd0 [file] [log] [blame]
Bram Moolenaar56b45b92013-06-24 22:22:18 +02001" Vim syntax file
2" Language: Innovation Data Processing USW2KAgt.log file
3" Maintainer: Rob Owens <rowens@fdrinnovation.com>
Bram Moolenaard8b77f72015-03-05 21:21:19 +01004" Latest Revision: 2014-04-01
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:
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020012syn match usw2kagtlog_Date /\u\l\l \u\l\l\s\{1,2}\d\{1,2} \d\d:\d\d:\d\d \d\d\d\d/
Bram Moolenaar56b45b92013-06-24 22:22:18 +020013" Msg Types:
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020014syn match usw2kagtlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=usw2kagtlog_Process skipwhite
15syn match usw2kagtlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=usw2kagtlog_Process skipwhite
16syn match usw2kagtlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=usw2kagtlog_Process skipwhite
17syn match usw2kagtlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=usw2kagtlog_Process skipwhite
Bram Moolenaar56b45b92013-06-24 22:22:18 +020018" Processes:
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020019syn region usw2kagtlog_Process start="(" end=")" contained
Bram Moolenaard8b77f72015-03-05 21:21:19 +010020"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client request"
21"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client request"
22"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request"
23"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request"
24syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client"
25syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client"
Bram Moolenaar56b45b92013-06-24 22:22:18 +020026" IP Address:
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020027syn match usw2kagtlog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
Bram Moolenaar56b45b92013-06-24 22:22:18 +020028" Profile:
Bram Moolenaar56b45b92013-06-24 22:22:18 +020029
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020030syn match usw2kagtlog_Profile /Profile name \zs\"\S\{1,8}\"/
31syn match usw2kagtlog_Profile / Profile: \zs\S\{1,8}/
32syn match usw2kagtlog_Profile / Profile: \zs\S\{1,8}\ze, /
Bram Moolenaard5d015d2013-11-03 21:14:31 +010033syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/
34syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020035syn match usw2kagtlog_Profile /Full of \zs\S\{1,8}\ze$/
36syn match usw2kagtlog_Profile /Incr. of \zs\S\{1,8}\ze$/
37syn match usw2kagtlog_Profile /profile name "\zs\S\{1,8}\ze"/
38" Target:
39syn region usw2kagtlog_Target start="Computer: \zs" end="\ze[\]\)]"
Bram Moolenaard5d015d2013-11-03 21:14:31 +010040syn region usw2kagtlog_Target start="Computer name \zs\"" end="\"\ze"
Bram Moolenaar9d98fe92013-08-03 18:35:36 +020041" Agent Keywords:
42syn keyword usw2kagtlog_Agentword opened closed
43
44hi def link usw2kagtlog_Date Underlined
45hi def link usw2kagtlog_MsgD Type
46hi def link usw2kagtlog_MsgE Error
47hi def link usw2kagtlog_MsgW Constant
48hi def link usw2kagtlog_Process Statement
49hi def link usw2kagtlog_IPaddr Identifier
50hi def link usw2kagtlog_Profile Identifier
51hi def link usw2kagtlog_Target Identifier
52hi def link usw2kagtlog_Agentword Special
Bram Moolenaar56b45b92013-06-24 22:22:18 +020053
54let b:current_syntax = "usw2kagentlog"