aboutsummaryrefslogtreecommitdiff
path: root/after/syntax/log.vim
blob: 44223e66b4a9851cca628fa5c5561e6f71d075a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


hi link Info NonText
hi link Pass DiffAdd

syn match ERROR   /TEST-UNEXPECTED-FAIL/
syn match NonText /^\[[^\]]*\]/

syn match NonText  /^ *\d\{1,2\}:\d\{1,2\}[.:]\d\{1,2\}[:0-9]*/
syn match ErrorMsg / ERROR /
syn match ErrorMsg / FAIL /
syn match Error    / WARNING /
syn match Info     / INFO / fold
syn match Pass     / PASS / fold


silent! lvimgrep /[^ ]* \(ERROR\|WARNING\|FAIL\) / %
lopen 12



" setlocal foldexpr=getline(v:lnum)=~'INFO'
" setlocal foldmethod=expr
" setlocal foldenable
..