-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinformix_online_log.vim
executable file
·75 lines (65 loc) · 3.03 KB
/
informix_online_log.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
" Vim syntax file
" Language: Informix online.log
" Maintainer: Cesar Inacio martins <cesar dot inacio dot martins at gmail dot com>
" Last Change: 2019-06-18
"
"
"
" # by Cesar Inacio Martins
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case ignore
syn match ifxOnlineLOGWarn "\(^../../.. ..:..:.. *\)\@!warning:"
syn match ifxOnlineLOGCkpt "\(checkpoint\|maximum server conn\).*"
syn match ifxOnlineLOGDate "^... ... [0-9]\{2} ..:..:.. 20..$"
syn match ifxOnlineLOGHour "^\([0-9]\{2}/../.. \|\)..:..:.. "
syn match ifxOnlineLOGYel "\(^../../.. ..:..:.. *\)\@!\(.*warn.*\|.*shared.*\|buffer.*\|segment.*\|listener.*\)" contains=ifxOnlineLOGWarn
syn match ifxOnlineLOGBlu "\(^../../.. ..:..:.. *\)\@! .*\<start.*"
syn match ifxOnlineLOGBkp ".*logical log.*"
syn match ifxOnlineLOGErr ".*stop.*"
syn match ifxOnlineLOGRed "\(\<Space.*\|Chunk.*\|.*abort.*\)"
syn match ifxOnlineLOGERR ".*\(assert\|failed\|isam\).*"
syn match ifxOnlineLOGPerf "performance advisory:"
syn match ifxOnlineLOGCommit ".*commit.*roll.*open.*"
syn match ifxOnlineLOGMode ".*Mode$"
syn match ifxOnlineLOGDyna "dynamic.* alloca.*"
syn match ifxOnlineLOGArc "\(^../../.. ..:..:.. *\)\@!.*\(level [012] archive started.*\|archive.*completed\)"
"syn match ifxOnlineLOGYel "^[-A-Z0-9* ]{4,}"
"syn match ifxOnlineLOGOra "^ORA-0*600.*"
"syn match ifxOnlineLOGOra "^ORA-0*7445.*"
"syn match ifxOnlineLOGAlt "alter .*"
"syn match ifxOnlineLOGBlu "^completed:"
"syn match ifxOnlineLOGMisc "^\(private strand.*\|Thread.*allocate new log.*\)"
"syn match ifxOnlineLOGStart "^Starting up ORACLE.*"
"syn match ifxOnlineLOGParam "^ .* *= .*"
" === initialization syntax group ===
"syn region ifxOnlineLOGTNS start="^*\+$" end="^... ... [0-9]\{2} ..:..:.. ....$"
syn sync minlines=200
"hi link ifxOnlineLOGDate Include
"hi link ifxOnlineLOGHour Include
" hi link ifxOnlineLOGOra Todo
" hi link ifxOnlineLOGAlt String
" hi link ifxOnlineLOGTNS String
" hi link ifxOnlineLOGStart Todo
" hi link ifxOnlineLOGParam Label
" hi ifxOnlineLOGAlt cterm=bold
"hi ifxOnlineLOGMisc ctermfg=DarkGray
hi link ifxOnlineLOGYel Keyword
hi link ifxOnlineLOGWarn Todo
hi link ifxOnlineLOGERR Error
hi ifxOnlineLOGErr ctermfg=White ctermbg=LightRed
hi ifxOnlineLOGRed ctermfg=lightred ctermbg=NONE
hi ifxOnlineLOGBlu ctermfg=White ctermbg=LightBlue
hi ifxOnlineLOGCkpt ctermfg=DarkGreen ctermbg=NONE
hi ifxOnlineLOGDate ctermfg=DarkGray ctermbg=white
hi ifxOnlineLOGHour ctermfg=DarkGray ctermbg=NONE
hi ifxOnlineLOGBkp ctermfg=DarkGray ctermbg=NONE
hi link ifxOnlineLOGPerf Todo
hi link ifxOnlineLOGCommit TypeDef
hi link ifxOnlineLOGMode Error
hi link ifxOnlineLOGDyna Tag
hi ifxOnlineLOGArc ctermfg=LightBlue ctermbg=DarkYellow
let b:current_syntax = "informix_online_log"