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> |
Bram Moolenaar | d5d015d | 2013-11-03 21:14:31 +0100 | [diff] [blame] | 4 | " Latest Revision: 2013-09-19 |
Bram Moolenaar | 56b45b9 | 2013-06-24 22:22:18 +0200 | [diff] [blame] | 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: |
Bram Moolenaar | 9d98fe9 | 2013-08-03 18:35:36 +0200 | [diff] [blame] | 21 | syn match upstreamlog_IPaddr /\( \|(\)\zs\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/ |
Bram Moolenaar | 56b45b9 | 2013-06-24 22:22:18 +0200 | [diff] [blame] | 22 | " Profile: |
Bram Moolenaar | 9d98fe9 | 2013-08-03 18:35:36 +0200 | [diff] [blame] | 23 | syn match upstreamlog_Profile /Using default configuration for profile \zs\S\{1,8}\ze/ |
| 24 | syn match upstreamlog_Profile /Now running profile \zs\S\{1,8}\ze/ |
| 25 | syn match upstreamlog_Profile /in profile set \zs\S\{1,8}\ze/ |
| 26 | syn match upstreamlog_Profile /Migrate disk backup from profile \zs\S\{1,8}\ze/ |
| 27 | syn match upstreamlog_Profile /Profileset=\zs\S\{1,8}\ze,/ |
| 28 | syn match upstreamlog_Profile /Vault \(disk\|tape\) backup to vault \d\{1,4} from profile \zs\S\{1,8}\ze/ |
| 29 | syn match upstreamlog_Profile /Profile name \zs\"\S\{1,8}\"/ |
| 30 | syn match upstreamlog_Profile / Profile: \zs\S\{1,8}/ |
| 31 | syn match upstreamlog_Profile / Profile: \zs\S\{1,8}\ze, / |
| 32 | syn match upstreamlog_Profile /, profile: \zs\S\{1,8}\ze,/ |
| 33 | syn match upstreamlog_Profile /found Profile: \zs\S\{1,8}\ze,/ |
Bram Moolenaar | d5d015d | 2013-11-03 21:14:31 +0100 | [diff] [blame] | 34 | syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/ |
| 35 | syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/ |
Bram Moolenaar | 9d98fe9 | 2013-08-03 18:35:36 +0200 | [diff] [blame] | 36 | syn match upstreamlog_Profile /Full of \zs\S\{1,8}\ze$/ |
| 37 | syn match upstreamlog_Profile /Incr. of \zs\S\{1,8}\ze$/ |
| 38 | syn match upstreamlog_Profile /Profile=\zs\S\{1,8}\ze,/ |
Bram Moolenaar | 56b45b9 | 2013-06-24 22:22:18 +0200 | [diff] [blame] | 39 | " Target: |
| 40 | syn region upstreamlog_Target start="Computer: \zs" end="\ze[\]\)]" |
Bram Moolenaar | d5d015d | 2013-11-03 21:14:31 +0100 | [diff] [blame] | 41 | syn region upstreamlog_Target start="Computer name \zs\"" end="\"\ze" |
Bram Moolenaar | 9d98fe9 | 2013-08-03 18:35:36 +0200 | [diff] [blame] | 42 | syn region upstreamlog_Target start="request to registered name \zs" end=" " |
| 43 | |
Bram Moolenaar | 56b45b9 | 2013-06-24 22:22:18 +0200 | [diff] [blame] | 44 | |
| 45 | hi def link upstreamlog_Date Underlined |
| 46 | hi def link upstreamlog_MsgD Type |
| 47 | hi def link upstreamlog_MsgE Error |
| 48 | hi def link upstreamlog_MsgW Constant |
| 49 | hi def link upstreamlog_Process Statement |
| 50 | hi def link upstreamlog_IPaddr Identifier |
| 51 | hi def link upstreamlog_Profile Identifier |
| 52 | hi def link upstreamlog_Target Identifier |
| 53 | |
| 54 | let b:current_syntax = "upstreamlog" |