1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-24 02:35:11 +01:00
vim/runtime/syntax/usw2kagtlog.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
2.6 KiB
VimL
Raw Normal View History

2013-06-24 22:22:18 +02:00
" Vim syntax file
" Language: Innovation Data Processing USW2KAgt.log file
" Maintainer: Rob Owens <rowens@fdrinnovation.com>
" Latest Revision: 2014-04-01
2013-06-24 22:22:18 +02:00
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" Date:
2013-08-03 18:35:36 +02:00
syn 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/
2013-06-24 22:22:18 +02:00
" Msg Types:
2013-08-03 18:35:36 +02:00
syn match usw2kagtlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=usw2kagtlog_Process skipwhite
syn match usw2kagtlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=usw2kagtlog_Process skipwhite
syn match usw2kagtlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=usw2kagtlog_Process skipwhite
syn match usw2kagtlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=usw2kagtlog_Process skipwhite
2013-06-24 22:22:18 +02:00
" Processes:
2013-08-03 18:35:36 +02:00
syn region usw2kagtlog_Process start="(" end=")" contained
"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client request"
"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client request"
"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request"
"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request"
syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client"
syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client"
2013-06-24 22:22:18 +02:00
" IP Address:
2013-08-03 18:35:36 +02:00
syn match usw2kagtlog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
2013-06-24 22:22:18 +02:00
" Profile:
2013-08-03 18:35:36 +02:00
syn match usw2kagtlog_Profile /Profile name \zs\"\S\{1,8}\"/
syn match usw2kagtlog_Profile / Profile: \zs\S\{1,8}/
syn match usw2kagtlog_Profile / Profile: \zs\S\{1,8}\ze, /
2013-11-03 21:14:31 +01:00
syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/
syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/
2013-08-03 18:35:36 +02:00
syn match usw2kagtlog_Profile /Full of \zs\S\{1,8}\ze$/
syn match usw2kagtlog_Profile /Incr. of \zs\S\{1,8}\ze$/
syn match usw2kagtlog_Profile /profile name "\zs\S\{1,8}\ze"/
2013-06-24 22:22:18 +02:00
" Target:
2013-08-03 18:35:36 +02:00
syn region usw2kagtlog_Target start="Computer: \zs" end="\ze[\]\)]"
2013-11-03 21:14:31 +01:00
syn region usw2kagtlog_Target start="Computer name \zs\"" end="\"\ze"
2013-06-24 22:22:18 +02:00
" Agent Keywords:
2013-08-03 18:35:36 +02:00
syn keyword usw2kagtlog_Agentword opened closed
2013-06-24 22:22:18 +02:00
2013-08-03 18:35:36 +02:00
hi def link usw2kagtlog_Date Underlined
hi def link usw2kagtlog_MsgD Type
hi def link usw2kagtlog_MsgE Error
hi def link usw2kagtlog_MsgW Constant
hi def link usw2kagtlog_Process Statement
hi def link usw2kagtlog_IPaddr Identifier
hi def link usw2kagtlog_Profile Identifier
hi def link usw2kagtlog_Target Identifier
hi def link usw2kagtlog_Agentword Special
2013-06-24 22:22:18 +02:00
let b:current_syntax = "usw2kagentlog"