upstreamlog.vim 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. " Vim syntax file
  2. " Language: Innovation Data Processing upstream.log file
  3. " Maintainer: Rob Owens <rowens@fdrinnovation.com>
  4. " Latest Revision: 2013-09-19
  5. " Quit when a syntax file was already loaded
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. " Date:
  10. 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/
  11. " Msg Types:
  12. syn match upstreamlog_MsgD /Msg #\(Agt\|PC\|Srv\)\d\{4,5}D/ nextgroup=upstreamlog_Process skipwhite
  13. syn match upstreamlog_MsgE /Msg #\(Agt\|PC\|Srv\)\d\{4,5}E/ nextgroup=upstreamlog_Process skipwhite
  14. syn match upstreamlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=upstreamlog_Process skipwhite
  15. syn match upstreamlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=upstreamlog_Process skipwhite
  16. " Processes:
  17. syn region upstreamlog_Process start="(" end=")" contained
  18. " IP Address:
  19. syn match upstreamlog_IPaddr /\( \|(\)\zs\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
  20. " Profile:
  21. syn match upstreamlog_Profile /Using default configuration for profile \zs\S\{1,8}\ze/
  22. syn match upstreamlog_Profile /Now running profile \zs\S\{1,8}\ze/
  23. syn match upstreamlog_Profile /in profile set \zs\S\{1,8}\ze/
  24. syn match upstreamlog_Profile /Migrate disk backup from profile \zs\S\{1,8}\ze/
  25. syn match upstreamlog_Profile /Profileset=\zs\S\{1,8}\ze,/
  26. syn match upstreamlog_Profile /Vault \(disk\|tape\) backup to vault \d\{1,4} from profile \zs\S\{1,8}\ze/
  27. syn match upstreamlog_Profile /Profile name \zs\"\S\{1,8}\"/
  28. syn match upstreamlog_Profile / Profile: \zs\S\{1,8}/
  29. syn match upstreamlog_Profile / Profile: \zs\S\{1,8}\ze, /
  30. syn match upstreamlog_Profile /, profile: \zs\S\{1,8}\ze,/
  31. syn match upstreamlog_Profile /found Profile: \zs\S\{1,8}\ze,/
  32. syn match upstreamlog_Profile /Backup Profile: \zs\S\{1,8}\ze Version date/
  33. syn match upstreamlog_Profile /Backup profile: \zs\S\{1,8}\ze Version date/
  34. syn match upstreamlog_Profile /Full of \zs\S\{1,8}\ze$/
  35. syn match upstreamlog_Profile /Incr. of \zs\S\{1,8}\ze$/
  36. syn match upstreamlog_Profile /Profile=\zs\S\{1,8}\ze,/
  37. " Target:
  38. syn region upstreamlog_Target start="Computer: \zs" end="\ze[\]\)]"
  39. syn region upstreamlog_Target start="Computer name \zs\"" end="\"\ze"
  40. syn region upstreamlog_Target start="request to registered name \zs" end=" "
  41. hi def link upstreamlog_Date Underlined
  42. hi def link upstreamlog_MsgD Type
  43. hi def link upstreamlog_MsgE Error
  44. hi def link upstreamlog_MsgW Constant
  45. hi def link upstreamlog_Process Statement
  46. hi def link upstreamlog_IPaddr Identifier
  47. hi def link upstreamlog_Profile Identifier
  48. hi def link upstreamlog_Target Identifier
  49. let b:current_syntax = "upstreamlog"