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