blob: b241f169168db311fb94eb09f877ae9764c00738 [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>
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 usw2kagentlog_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 usw2kagentlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=usw2kagentlog_Process skipwhite
15syn match usw2kagentlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=usw2kagentlog_Process skipwhite
16syn match usw2kagentlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=usw2kagentlog_Process skipwhite
17syn match usw2kagentlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=usw2kagentlog_Process skipwhite
18" Processes:
19syn region usw2kagentlog_Process start="(" end=")" contained
20syn region usw2kagentlog_Process start="Starting the processing for a \zs\"" end="\ze client request"
21syn region usw2kagentlog_Process start="Ending the processing for a \zs\"" end="\ze client request"
22" IP Address:
23syn match usw2kagentlog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
24" Profile:
25syn region usw2kagentlog_Profile start="Profile name \zs" end="\"\S\{1,8}\""
26syn region usw2kagentlog_Profile start=" Profile: \zs" end="\S\{1,8}"
27syn region usw2kagentlog_Profile start=" Profile: \zs" end="\ze, "
28syn region usw2kagentlog_Profile start="Backup Profile: \zs" end="\ze Version date"
29syn region usw2kagentlog_Profile start="Full of \zs" end="\ze$"
30syn region usw2kagentlog_Profile start="Incr. of \zs" end="\ze$"
31syn region usw2kagentlog_Profile start="profile name \zs\"" end="\""
32" Target:
33syn region usw2kagentlog_Target start="Computer: \zs" end="\ze[\]\)]"
34syn region usw2kagentlog_Target start="Computer name \zs" end="\ze,"
35" Agent Keywords:
36syn keyword usw2kagentlog_Agentword opened closed
37
38hi def link usw2kagentlog_Date Underlined
39hi def link usw2kagentlog_MsgD Type
40hi def link usw2kagentlog_MsgE Error
41hi def link usw2kagentlog_MsgW Constant
42hi def link usw2kagentlog_Process Statement
43hi def link usw2kagentlog_IPaddr Identifier
44hi def link usw2kagentlog_Profile Identifier
45hi def link usw2kagentlog_Target Identifier
46hi def link usw2kagentlog_Agentword Special
47
48let b:current_syntax = "usw2kagentlog"