7
|
1 " Vim syntax file
|
|
2 " Language: purify log files
|
|
3 " Maintainer: Gautam H. Mudunuri <gmudunur@informatica.com>
|
|
4 " Last Change: 2003 May 11
|
|
5
|
|
6 " For version 5.x: Clear all syntax items
|
|
7 " For version 6.x: Quit when a syntax file was already loaded
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 " Purify header
|
|
15 syn match purifyLogHeader "^\*\*\*\*.*$"
|
|
16
|
|
17 " Informational messages
|
|
18 syn match purifyLogFIU "^FIU:.*$"
|
|
19 syn match purifyLogMAF "^MAF:.*$"
|
|
20 syn match purifyLogMIU "^MIU:.*$"
|
|
21 syn match purifyLogSIG "^SIG:.*$"
|
|
22 syn match purifyLogWPF "^WPF:.*$"
|
|
23 syn match purifyLogWPM "^WPM:.*$"
|
|
24 syn match purifyLogWPN "^WPN:.*$"
|
|
25 syn match purifyLogWPR "^WPR:.*$"
|
|
26 syn match purifyLogWPW "^WPW:.*$"
|
|
27 syn match purifyLogWPX "^WPX:.*$"
|
|
28
|
|
29 " Warning messages
|
|
30 syn match purifyLogABR "^ABR:.*$"
|
|
31 syn match purifyLogBSR "^BSR:.*$"
|
|
32 syn match purifyLogBSW "^BSW:.*$"
|
|
33 syn match purifyLogFMR "^FMR:.*$"
|
|
34 syn match purifyLogMLK "^MLK:.*$"
|
|
35 syn match purifyLogMSE "^MSE:.*$"
|
|
36 syn match purifyLogPAR "^PAR:.*$"
|
|
37 syn match purifyLogPLK "^PLK:.*$"
|
|
38 syn match purifyLogSBR "^SBR:.*$"
|
|
39 syn match purifyLogSOF "^SOF:.*$"
|
|
40 syn match purifyLogUMC "^UMC:.*$"
|
|
41 syn match purifyLogUMR "^UMR:.*$"
|
|
42
|
|
43 " Corrupting messages
|
|
44 syn match purifyLogABW "^ABW:.*$"
|
|
45 syn match purifyLogBRK "^BRK:.*$"
|
|
46 syn match purifyLogFMW "^FMW:.*$"
|
|
47 syn match purifyLogFNH "^FNH:.*$"
|
|
48 syn match purifyLogFUM "^FUM:.*$"
|
|
49 syn match purifyLogMRE "^MRE:.*$"
|
|
50 syn match purifyLogSBW "^SBW:.*$"
|
|
51
|
|
52 " Fatal messages
|
|
53 syn match purifyLogCOR "^COR:.*$"
|
|
54 syn match purifyLogNPR "^NPR:.*$"
|
|
55 syn match purifyLogNPW "^NPW:.*$"
|
|
56 syn match purifyLogZPR "^ZPR:.*$"
|
|
57 syn match purifyLogZPW "^ZPW:.*$"
|
|
58
|
|
59 " Define the default highlighting.
|
|
60 " For version 5.7 and earlier: only when not done already
|
|
61 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
62 if version >= 508 || !exists("did_purifyLog_syntax_inits")
|
|
63 if version < 508
|
|
64 let did_purifyLog_syntax_inits = 1
|
|
65 command -nargs=+ HiLink hi link <args>
|
|
66 else
|
|
67 command -nargs=+ HiLink hi def link <args>
|
|
68 endif
|
|
69
|
|
70 HiLink purifyLogFIU purifyLogInformational
|
|
71 HiLink purifyLogMAF purifyLogInformational
|
|
72 HiLink purifyLogMIU purifyLogInformational
|
|
73 HiLink purifyLogSIG purifyLogInformational
|
|
74 HiLink purifyLogWPF purifyLogInformational
|
|
75 HiLink purifyLogWPM purifyLogInformational
|
|
76 HiLink purifyLogWPN purifyLogInformational
|
|
77 HiLink purifyLogWPR purifyLogInformational
|
|
78 HiLink purifyLogWPW purifyLogInformational
|
|
79 HiLink purifyLogWPX purifyLogInformational
|
|
80
|
|
81 HiLink purifyLogABR purifyLogWarning
|
|
82 HiLink purifyLogBSR purifyLogWarning
|
|
83 HiLink purifyLogBSW purifyLogWarning
|
|
84 HiLink purifyLogFMR purifyLogWarning
|
|
85 HiLink purifyLogMLK purifyLogWarning
|
|
86 HiLink purifyLogMSE purifyLogWarning
|
|
87 HiLink purifyLogPAR purifyLogWarning
|
|
88 HiLink purifyLogPLK purifyLogWarning
|
|
89 HiLink purifyLogSBR purifyLogWarning
|
|
90 HiLink purifyLogSOF purifyLogWarning
|
|
91 HiLink purifyLogUMC purifyLogWarning
|
|
92 HiLink purifyLogUMR purifyLogWarning
|
|
93
|
|
94 HiLink purifyLogABW purifyLogCorrupting
|
|
95 HiLink purifyLogBRK purifyLogCorrupting
|
|
96 HiLink purifyLogFMW purifyLogCorrupting
|
|
97 HiLink purifyLogFNH purifyLogCorrupting
|
|
98 HiLink purifyLogFUM purifyLogCorrupting
|
|
99 HiLink purifyLogMRE purifyLogCorrupting
|
|
100 HiLink purifyLogSBW purifyLogCorrupting
|
|
101
|
|
102 HiLink purifyLogCOR purifyLogFatal
|
|
103 HiLink purifyLogNPR purifyLogFatal
|
|
104 HiLink purifyLogNPW purifyLogFatal
|
|
105 HiLink purifyLogZPR purifyLogFatal
|
|
106 HiLink purifyLogZPW purifyLogFatal
|
|
107
|
|
108 HiLink purifyLogHeader Comment
|
|
109 HiLink purifyLogInformational PreProc
|
|
110 HiLink purifyLogWarning Type
|
|
111 HiLink purifyLogCorrupting Error
|
|
112 HiLink purifyLogFatal Error
|
|
113
|
|
114 delcommand HiLink
|
|
115 endif
|
|
116
|
|
117 let b:current_syntax = "purifylog"
|
|
118
|
|
119 " vim:ts=8
|